all groups > dotnet drawing api > december 2007
Scale Transform - Why do I need to account for verticalResolution?
Posted by Mash at 12/31/2007 11:23:41 AM
My code calculates the size required to maintain the aspect ratio of
an image when displaying it. I use a scale transformation to scale the
image to the proper size. For some reason my scaling is always off
unless I account for the vertical and horizontal resolution of the
image being drawn, as ... more >>
Application icon from hWnd?
Posted by Zamdrist at 12/26/2007 6:45:21 AM
Is it possible to get a bitmap icon from a window's hWnd value
suitable for populating an ImageList control? I have working a small
application that lists the running, user applications in a listview
(title & hWnd) and it would be great if I could also add the icon (or
the parent's icon where ap... more >>
memory device context and DIB
Posted by jonpb at 12/19/2007 2:33:49 PM
Hi,
I am porting some code over from a C++ application that uses OpenGL. I
need to save the current scene to an image file. The steps are quite
simple: create a memory device context, select a DIB into it, draw the
OpenGL scene, create a System.Drawing.Bitmap using FromHBitmap on the
DIB, s... more >>
Graphics.MeasureString? or Graphics.DrawString?
Posted by Norman Diamond at 12/17/2007 12:05:38 PM
In Windows XP, the following code figures out where to position a string and
draws the string. In Vista, the following code figures out where to
position all except the last character of the string and draws all except
the last character of the string.
Notice that this legend is located ne... more >>
Convert Color Bitmap To B/W
Posted by Ruby Nadler at 12/16/2007 11:23:02 PM
Hi every one,
I am trying to convert Color jpg into 1 bit pixel b/w gif.
For that i used some examples i found in the internet: Bob Pawell or
www.wischik.com and others.
all of them use the bitmap object with Format1bppIndexed but when i save the
image i see that i have 256 color gif and not ... more >>
Scale Image w/o creating a 24 bit image object
Posted by davermcl@hotmail.com at 12/11/2007 9:04:37 AM
Hi,
I have a large (1000px x 20000px) Image object that I am trying to
scale down. It is in the 8bppIndexed format.
I am currently creating a new 24 bit Image object and using the
DrawImage method to do the scaling. But creating the new Image object
takes too much RAM (~70 MB) for the depl... more >>
Image artifacts after asp.net gdi+ resize
Posted by Amoril at 12/10/2007 2:56:59 PM
I'm experiencing some issues with uploading & resizing images on my
website. I'm taking images that are uploaded to my page and upscaling
them to 300dpi if they are below that resolution and adjusting their
pixel width & height to what I need.
Somewhere in the process of creating the new modif... more >>
Animated GIF colour depth
Posted by Chris Jones at 12/8/2007 10:31:41 PM
I'm having a problem using C# to load image files. I'm writing an
application to do some palette processing with palettized (ie. 8-bit) image
files. With most files it works fine, and with standard GIF files it works
too. But when I try and load an animated GIF file it seems to convert the
frame... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Icon.FromHandle + ImageList = decreased color depth
Posted by Alex Blekhman at 12/1/2007 2:52:04 AM
Hello,
I'm writing Visual Studio add-in in C# (VS 2008, WinXP SP2).
I need to display a list of files in ListView control. In
order to get the file type's associated icon I use
`SHGetFileInfo' API from Shell32.dll (the code is taken
verbatim from here:
http://www.codeproject.com/csharp/... more >>
|