Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!


Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
May 2008
June 2008
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 >>



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 >>


DevelopmentNow Blog