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

Filter by week: 1 2 3 4 5

user control selection point rect
Posted by phcmi at 8/31/2007 4:41:09 PM
Hello, I'm not an expert in Graphic User Interfaces so I'm posing this question to the experts. I have a plain vanilla user control that represents my main view. The view's size is fixed and divided evenly into 8 square regions. The view's backcolor is white. When the user selects an...more >>


Format16bppRgb555 and Format16bppRgb565 questions.
Posted by \ at 8/31/2007 1:36:17 AM
The PixelFormat Enumeration contains Format16bppRgb555, Format16bppRgb565, Format16bppGrayScale and Format16bppArgb1555. Does the BMP file format admit to this distinction? What about filling in the BITMAPINFOHEADER structure. Is there a way to differentiate these formats there? ...more >>

loading, creating, saving vector drawings to Word DOC or RTF file from code?
Posted by mad.scientist.jr NO[at]SPAM gmail.com at 8/30/2007 10:46:22 PM
I'm interested in coding a simple, easy to use, open source vector drawing program similar to MS Word's drawing tool bar or MS Paint (but vector-based) to run on PocketPCs (using the .NET compact framework). It would let the user draw & fill boxes, ellipses, polygons, lines, add text, etc, and...more >>

How to manually invoke PictureBox.Resize?
Posted by nvx at 8/30/2007 6:12:31 AM
Hello, I experience a strange problem with PictureBox I draw onto. My application has a fill-docked TabControl on its form and there is PictureBox on one of the TabPages. If I resize the form (hence the PictureBox should resize too) WITHOUT switching to the TabPage containing the PictureBox bef...more >>

graphical color interpolation
Posted by Victor at 8/28/2007 12:33:15 PM
Hi, I am a newbie in the C# graphical arena and I have the following problem. I have a 2D disk in which I have a few points, each point having x, y coordinates and also a value associated with it which represents profit (or loss). What I want to do is to create a background with a gradient go...more >>

Tying to convert a 8bpp to 4 bpp
Posted by \ at 8/28/2007 8:44:34 AM
I'm about ready to give up. Been trying to convert a 8bpp to 4 bpp but haven't found a way. I can us Quantizer to generate a 16 color palette but that changes the pixel format to 8 bpp. I can convert to 4 bpp using GetDIBits but that converts to the standard VGA palette. So I can com...more >>

Disabled icon
Posted by TumurS at 8/27/2007 12:00:00 AM
Hi! I have about hundred of small bitmaps I have to use in my web app as small icons on some image map. Every icons represented with these bmps should be drawn in 2 states: 1. normal (as is) 2. disabled (dimmed, i.e. with some "grayed" color) I'm not a image designer and lack of knowledge abou...more >>

Can't draw? Try going native? Yeah right.
Posted by Norman Diamond at 8/27/2007 12:00:00 AM
How many invalid parameters are there in the following method call? myScaledHdc = myScaledGraphics.GetHdc(); Running in the debugger, Visual C# 2005 SP1 says there's at least one invalid parameter in the above call. And the invalid argument exception was unhandled, well no kidding about t...more >>



Can an indexed BMP file be saved as 4bpp?
Posted by \ at 8/26/2007 9:58:11 AM
I'd like to be sure I completely understand: There is no way, using Dotnet and/or some free software, to save an indexed GIF file as anything but 8bpp. Right? What about other indexed files like BMP. Same problem? What files have that property. Knowing this before I work with them...more >>

Mouse Dragging and drawing a rectangle
Posted by RobinS at 8/24/2007 3:22:53 PM
I am drawing a rectangle on a picture that has already been drawn on the graphics area (a user control). It works something like this: //in the MouseDown event m_isDragging = true; m_oldX = e.X; //save original positions m_oldY = e.Y; //in the MouseMove event if (m_isDragging) ...more >>

Compressing PNG with given quality
Posted by pamela fluente at 8/23/2007 3:53:18 AM
Hello I am saving JPG file with the following SUB. Sub SaveJPG(ByVal Image As Image, ByVal FileName As String, _ ByVal QualityLevel_0_100 As Byte, _ ByVal ColorDepthLevel As Byte) Dim ImageCodecInfoJPG As ImageCodecInfo = GetEn...more >>

OutOfMemory is intermittent, maybe here's why
Posted by Norman Diamond at 8/23/2007 12:00:00 AM
After a call to Graphics.DrawImage, an OutOfMemory error might occur. The probability of an error has some correlation with the size of the image but is not reliable. Even with an image of a few hundred megabytes, sometimes the error occurs and sometimes not. Some random postings on the web...more >>

Can Bitmap.Save produce a 4bpp GIF file?
Posted by \ at 8/21/2007 9:51:33 AM
Is it possible using Bitmap.Save to produce a GIF file that is 4bpp? Seems that I always get 8bpp. If I know it's not possible I'll quit trying. Thanx ...more >>

Can GDI+ create such a graph?
Posted by at 8/20/2007 8:33:03 PM
Hi, I am new to GDI+, our client is interested in have their web-based project management generate some roadmaps that look like the one below: http://farm2.static.flickr.com/1226/1185331048_5d0b41e7f8_o.png The duration of each project is from the database. As I cannot find any API tha...more >>

Looking for a better way
Posted by AMDRIT at 8/20/2007 11:00:54 AM
Hello Everyone, I have a need to generate images similar to what you would see in a periodic table of elements or on a Scrabble board. It seems that I can get the painted on the image, but laying the image out properly seems to be a challenge. Let's take the Scabble example, I think thi...more >>

Combining Single Page TIFFs into 1 multipage TIFF
Posted by SR at 8/17/2007 2:36:36 PM
I have a directory full of single page TIFFs. I would like to write a program that will combine all of them into 1 multipage TIFF. Here is my code. I am getting a "Parameter not valid" error message when performing the SaveAdd methods. Any help would be appreciated! oFiles =...more >>

Image Quality loss
Posted by Nenefta at 8/16/2007 7:02:29 AM
As a beginner to GDI, I think I'm doing someting fairly straightforward, loading and saving an image, but it seems te lead to a loss of quality. What can be the reason for this loss, and how would I go about it to fix this? Thanx, Marcel I'm using the following code: Dim bmap As B...more >>

Dynamic resizing - should be simple?
Posted by Jack at 8/14/2007 8:51:29 AM
I've got a picture box inside a picture box. I would like to be able to move it and scale it. I've got the moving part down, and currently have a "make bigger" and "make smaller" button that scale the image by some fixed number when clicked. Is there an easy way to allow the user to grab ...more >>

ArgumentException and OutOfMemoryException in Bitmap constructor
Posted by vector at 8/13/2007 11:11:41 AM
I'm trying to write a program that spins through a List collection of Image objects and manipulates them. Unfortunately I keep encountering exceptions where I don't understand why they're happening. I've stripped down my app into a sample program that has the same flaws in it. The first exc...more >>

comparing two images
Posted by sklett at 8/13/2007 7:12:26 AM
Hi, I am developing an application to verify firmware for an embedded device. One aspect involves verifying the display of the device. What I'm doing now is rendering an image of what the screen *should* look like alongside a video frame of what the device is actually displaying, then aski...more >>

copy and paste region
Posted by Ruby Nadler at 8/13/2007 1:20:01 AM
Hi everyone, how can i draw a region (polygon or Ellipse) on a bitmap, copy the region i markes and paste it on a othe image or picture box? thanks, Ruby...more >>

Animated GIFs
Posted by Mac at 8/10/2007 12:20:01 PM
Is there a way to download an animated GIF from the internet. Easy enough to get a still, but when I try it with an animated, I just get the image that is on the screen at the instant I press the save key. -- Mac...more >>

A Graphics object cannot be created from an image that has an inde
Posted by mcimaging at 8/10/2007 5:48:01 AM
Hi , Bellow is my code. Dim img As Image = System.Drawing.Image.FromFile("E:\Images\form.gif") Dim gr As System.Drawing.Graphics = Graphics.FromImage(img) ------------------ Error line : Dim gr As System.Drawing.Graphics = Graphics.FromImage(img) ----------------- In that abov...more >>

How to load .psd in asp.net
Posted by CrmNewbie at 8/10/2007 4:42:02 AM
Hi, 1) Load a theme which is .psd (Adobe Photoshop) file in asp.net. The .psd file contains layers a) which starts with Fill, b) Which starts with Clipart 2) Allow a user to select some image(.jpg). 3) Allow a user to select color. How do I Replace the color in the Fill Layer wi...more >>

clipboard converts 8bpp to 32bpp
Posted by active at 8/6/2007 12:45:24 PM
I place a Bitmap on the clipboard with: Clipboard.SetData(DataFormats.Bitmap, BackgroundImage) Then retrive it with: d = CType(DataO.GetData(DataFormats.Bitmap, False), Bitmap) I place an 8ppbIndexed bitmap on the clipboard a get a 32bpprgb bitmap back. Am I stuck with that or...more >>

Copying a selected area of PictureBox
Posted by tedqn NO[at]SPAM yahoo.com at 8/5/2007 11:32:34 PM
Currently I have the code that draws a dotted rectangle within a picture box as selected area. I want to replace the current image with that selected image segment. The problem is that the picturebox is located in a Panel of a TabControl and the x,y references the x,y relative to the main form r...more >>

Image load throws Out of memory or performance issue
Posted by Kristijan Marin at 8/3/2007 11:52:38 PM
Hi, I'm working on a project where we can/ (customer will) load a lot of pages at once ..... What we are loading is pages from a newspaper ,,, so there can be like 40 or more ..... Now the resolution is 3500x5500 and 300dpi ....... At some point not sure at which image, but when the ...more >>

ImageList images problem
Posted by Fabio at 8/1/2007 2:54:27 PM
Hi, I have a litte icon in png format with a transparent color. I show you what is the problem: in the following image I have - at left a picturebox where I set the image property and all is ok. - at right a picturebox where I assign to the image the same picture contained in a ImageList...more >>


DevelopmentNow Blog