Groups | Blog | Home


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 > february 2006 > threads for february 8 - 14, 2006

Filter by week: 1 2 3 4

Painting custom polygon-shaped control to PictureBox
Posted by Surly at 2/14/2006 1:36:33 PM
Please help! I'm absolutely perplexed by this problem. I have a PictureBox on a Form in .NET 2.0. I allow my user to draw polygon(s) on the image, and I record the points and draw lines as so in the PicBox.Paint handler: e.Graphics.DrawLine( blackPen, polygonPts[ i ], polygonPt...more >>

GetPixel - different RGB values than Photoshop
Posted by Mirek Endys at 2/13/2006 2:28:49 PM
Hello, I have this problem: I have a small bitmap 2x2 pixels size. All pixels in this bitmap has RGB values (195, 204, 218). I save this picture in files (formats) JPEG, BMP. I load this pictures in code, to the Bitmap and call GetPixel, the Blue value in case JPEG has value 219, in case ...more >>

Looking for graphic control to use in .NET
Posted by Simon Friso at 2/13/2006 1:23:27 AM
Hello, I'm looking for a graphic control I can use in .NET. I need the following features: - drawing shapes - filling shapes with color, gradient or texture - drawing splines, arcs and curves - present the drawings on a graphical map (jpg) I prefer .NET technology. I know Vector Graphi...more >>

GDI+ FAQ Question
Posted by JB at 2/12/2006 6:38:26 PM
Hi, I have taken the code from http://www.bobpowell.net/manipulate_graphics.htm. This works great for creating simple shapes but I have tried to extend the functionality. What I want to do is add images to the screen, so that they work in the same way as all the other shaped. My code...more >>

LockWindowUpdate in VB 2005
Posted by Sanjay Singh at 2/10/2006 12:00:00 AM
hi, does VB 2005 provide an equivalent of LockWindowUpdate ? I want to achive that without using win32 API. Also, can anybody please give me some pointer on where i can get all APIs and their .NET equivalent. I will be thankful for any help on the same.. thanks sanjay ...more >>

Bitmap Resources
Posted by Saleh Ghaleb at 2/9/2006 7:38:25 PM
Hi All I need to add icons to the header of a ListView control, the bitmaps (icons) are save as one single bitmap resource.. I managed to do most of the job but the bitmaps drawn with thier background color. How to make them look transparent? Any help is deeply apperciated. Bests ...more >>

Creating Image files from Bitmaps - Problem with Icons
Posted by Bob Costello at 2/9/2006 1:16:31 PM
I created a drawing program using VS.NET 2003. I use GDI+ for the graphics. I also wanted the option of creating Image files using the same painting software. Here is what I do: // Create bitmap Bitmap bmp = new Bitmap(32, 32) // Get a graphics object Graphics g = Graphics.FromImage(bmp)...more >>

Articles on .NET Graphics/Controls - Drawing
Posted by kalyan.ganjam NO[at]SPAM gmail.com at 2/9/2006 11:22:00 AM
Hi All, I started a blog www.kalyanganjam.blogspot.com few months ago. I would like to post articles on .NET Graphics on this blog. But, I dont know where to start, naturally, as a consequence of the vastness of the subject. So, I decided to do this post and get as many questions/issues you may...more >>



VisualStyleRenderer and Office 2003 colors
Posted by Grafix at 2/9/2006 3:58:28 AM
All - Without much luck in framework.windowsforms group, posting it to framework.drawing. (*) Is it possible to get the gradient colors that Office 2003 uses for its toolbar, programmatically? For instance Outlook 2003's toolbar under Blue, has a Horizontal Gradient fill from Argb(2...more >>

Not applying scale transform on text in ruler
Posted by Sanjay Singh at 2/9/2006 12:00:00 AM
hi, I am drawing a ruler with displayes as such |'''''|'''''|'''''|'''''|'''''|'''''|'''''|''''' and so on 1 2 3 4 5 6 7 8 when i scale it to view at 200% , numbers below the bars also get enlrged as such. It was not so when i used "pictureBox1.Print" method in VB6 whatever be t...more >>

thumbnail's gif version only has 16 colors
Posted by Daves at 2/9/2006 12:00:00 AM
my 2.0 web app reads an Image from file, resizes it to thumbnail size and uses Image.Save() to save it as a gif file. I want it to be gif format, no other (if I save it in another format, say jpg this doesn't happen). What happens is that the color palette is reduced to 16 colors so the result...more >>

Resize an uploaded image then store in SQL
Posted by Simon at 2/9/2006 12:00:00 AM
Hi all, We have an ASP.NET framework 1.1 application running on windows server 2003. We currently have code to upload images into an sql server, which is working perfectly. Here is the current code, The first function SetImage takes a stream, and a file name from an HtmlControls.HtmlIn...more >>

Use of Vector Fonts in C#
Posted by arjun.chakraborty NO[at]SPAM gmail.com at 2/8/2006 7:27:37 PM
Hi All, I am new to GDI and I am faced with a problem of drawing sharp text on gifs. I am using the DrawString API with truetype fonts likeVerdana.Arial etc. However, at lower resolutions of 200 the text has craggy edges. Also, when I zoom at up 400 % I can see more craggy staircase on the ...more >>

printing with c#.net produces large print documents in spooler
Posted by Phaitour at 2/8/2006 2:50:05 PM
I'm developing a program that will print out a sheet of paper that describes the object that I specify. For instance, if in my system I have an object A, I would print out a sheet listing out all of object A's properties, qualities, methods, etc. In order to standardize all of these sheets t...more >>

Custom Pixel Format?
Posted by steele.pj NO[at]SPAM gmail.com at 2/8/2006 1:40:15 PM
Howdy All, Can I change the PixelFormat when creating a Bitmap? I am working with video files that do not have a header. The files are UYVY. YUV is a 16 bit format that is often used for video. This code "kinda" works when I use 16 bit pixelformats. It will create the bitmap and save the bi...more >>

Output is several times smaller than the original , when printing.
Posted by jjohn at 2/8/2006 12:00:00 AM
Hi, I am having a problem in printing, when I am drawing the picture usin the following code. It draws correctly in screen, the problem is onl in printing. My code block is given below: private void PaintCtrl(Control ctrll, Graphics graphics, Rectangle rectF) { Bitmap bitmap = null; ...more >>


DevelopmentNow Blog