image

MemoryStream.Read doesn't copy bytes to buffer - c#

I don't really get it and it's driving me nuts. i've these 4 lines: Image img = Image.FromFile("F:\\Pulpit\\soa.bmp"); MemoryStream imageStream = new MemoryStream(); img.Save(imageStream, ImageFormat.Bmp); byte[] contentBuffer = new byte[imageStream.Length]; imageStream.Read(contentBuffer, 0, contentBuffer.Length); when debugging i ca...

How to set icc color profile in Java and change colorspace

First, I would like to say I'm not an image processing specialist. I would like to convert image colorspace from one to another, and change icc color profile at the same time. I managed to do it using JMagick (the ImageMagick Java port), but no way in pure Java (even using JAI). ...

Aligning images - horizontally

If you go to my site: www.ryancoughlin.com - and if you see the Google, Yahoo, etc. RSS buttons on the right side of the page. I am trying to get them to align evenly, they are all the same image height and I have been trying to get them to evenly line up. But I have had no success. Thanks, Ryan ...

How to change color of Image at runtime. C# Asp.Net

I would like to know is there any way by which we can change the Image color at runtime. for e.g lets say I am having a JPG bind to an Image control of ASP.Net. Next I am having a dropdown List which gives me the various color option like red,gree,etc. I would now like to change the color of the Image to the one selected in the droprdown...

PIL and numpy

Alright, I'm toying around with converting a PIL image object back and forth to a numpy array so I can do some faster pixel by pixel transformations than PIL's PixelAccess object would allow. I've figured out how to place the pixel information in a useful 3D numpy array by way of: pic = Image.open("foo.jpg") pix = numpy.array(pic.getda...

What is the best image downscaling algorithm (quality-wise)?

I want to find out which algorithm is the best that can be used for downsizing a raster picture. With best I mean the one that gives the nicest-looking results. I know of bicubic, but is there something better yet? For example, I've heard from some people that Adobe Lightroom has some kind of propieritary algorithm which produces better ...

WPF ListBox DataTemplate and Image Question

I have a ListBox with a StackPanel that contains an image and label. <ListBox.ItemsPanel> <ItemsPanelTemplate> <VirtualizingStackPanel Orientation="Horizontal" IsItemsHost="True" /> </ItemsPanelTemplate> </ListBox.ItemsPanel> <ListBox.ItemTemplate> <DataTemplate> <StackPanel Orientation="Vertical"> ...

WPF ListBox Image Selected the saga continues

Ok in my ListBox scrolling images w/ text, etc. the saga continues. When I click one of the items, to select it, that runs a process to open a web browser and go to a specific URL. The problem I'm having now is that when the WPF app loses focus, and the web browser opens, the item clicked inside the listbox turns white. Here's the whole ...

Delphi - Displaying All Image Format

Hello everyone, Im a newbie programmer in Delphi. I need help, I have a small project which I need to display all kind of image format. Please suggest what should I do or any component in delphi that support all image format? thanks for the help in advance. ...

Firefox blurs an image when scaled through css or inline style.

Hi When I visually scale an image, firefox 3 blurs it. Firefox 2 and other browsers don't, which is the behavior I expect. This is especially lame for creating a webbased game using png or gif sprites. For example, when showing a 100x100 image in firefox 3 like this: <img src="sprite.gif" width="200" /> or <img src="sprite.gif" sty...

Finding (loaded) image size in AS3 (Action Script 3.0)

Im currently using the following function to load an image, however i could not figure out a way to find the width of the loaded image, which i intend to use before placing the next image using the same function. Note that q is a a variable (a number) which is used to load differant images. =X i need help obtainning the loaded image w...

How can I send a picture in j2me

How can I send a picture in j2me maybe using base64 decode and the send in post form via http request ...

Why asynchronous ASHX generated images doesn't always work in IE6?

If you use an WebHandler inheriting IHttpAsyncHandler, you shouldn't notice that under undetermined specific circumstances the browser MS IE6 won't display it, the request will never finish. Is there a fix for it? ...

Why won't my flex image control display my image?

I have created an ashx handler that returns an image to my flex app. If I go directly to the url for example (www.mysite.com/handler.ashx?id=34) the browser will display the image. If you set the source of an image control in flex to the same address. I get "Error #2124: Loaded file is an unknown type.". Any hints ...

Transparency for images in Visual Basic .net?

I have a picture box on my form, which I add a picture to. This picture has a transparent background, but unfortunately, it seems lost in the picture box... I'm guessing that's because the picture box's background colour property is set to grey (the default). I can't see any option for "transparent" though. Any idea how I can do it? ...

what is the algorithm used to generate those little gravatar identicon images?

Naturally, one would suspect that the algorithm creates images that are: highly unlikely to produce the same identicon twice; and capable of ensuring that each identicon is sufficiently distinctive as to not appear too similar to any other identicon ...

Pixel Programming continued

I have got a byte array of pixels in BGR order and I want to create an image out of it in C#. Can anyone offer code or advice? ...

Is it possible to use .png images for WiX bitmaps

I am using 2 500K bitmaps in to display images on my WiX dialogs. They dramatically increase the size of the installation package, and what is worse - it looks there's no way to package them as a part of a .cab file since they're <binary>-es in the WiX terms. So, I thught, is there any way to use other file formats for bitmaps or WiX i...

How to open an image in IE browser using XBAP under partial trust ?

Hi, How to open an Image in browser (IE) from our XBAP Application???? I did not saved the image file anywhere and i have the object of the Image class (I will assign its content later - dynamically). I want to open this image in the browser from my XBAP partialy trusted application. Thanks in advance, ...

Transparent images with C# WinForms

I am working on a Windows Forms application in VS 2008, and I want to display one image over the top of another, with the top image being a gif or something with transparent parts. Basically I have a big image and I want to put a little image on top if it, so that they kinda appear as one image to the user. I've been trying to use a pi...