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

Filter by week: 1 2 3 4 5

Make edges smooth after cliping.
Posted by danila.benhur NO[at]SPAM gmail.com at 12/30/2006 2:26:12 AM
Greeting! I'm using the following code. // Create graphics path represented by rectangle with rounded angles GraphicsPath roundedRectangle = this.GetRoundedRectPath(rect, 13); g.PixelOffsetMode = PixelOffsetMode.HighQuality; g.SmoothingMode = SmoothingMode.HighQuality; // Set clipping regi...more >>


call two page crystalreports in VB
Posted by r a at 12/30/2006 2:02:30 AM
In Vb.6 I use CrystalReports For reporting How Can I Call The two page crystalreports in Vb6 by sequencly. if you know please reply for me thanks aghazadeh. *** Sent via Developersdex http://www.developersdex.com ***...more >>

How to register COM component in C#?
Posted by Bill Gates at 12/25/2006 12:00:00 AM
Thanks! ...more >>

Rotating a portion of a graphics object
Posted by Jeff at 12/21/2006 6:12:48 AM
I'm rendering several controls on the graphics object of a form. I need to rotate one of the controls 90 degrees. My searches so far seem to point to the use of a matrix, a region, the Transform property, and the RotateTransform method. However, apparently I'm not using the correct combinatio...more >>

Most common GDI+ question
Posted by Michael C at 12/21/2006 12:00:00 AM
On Bob Powell's website (which seems to be the central reference around here) it states that the number 1 most common question asked in this group is "why doesn't what I draw on a form stay there". I vote that the number 1 question is actually "why is GDI+ so slow". :-) What does everyone thin...more >>

Zoom to center of UserControl in C# using GDI+
Posted by dcopestake NO[at]SPAM gmail.com at 12/18/2006 3:17:56 PM
Hi, I'm currently trying to write a custom UserControl which (essentially) is a drawing canvas and allows zooming and panning. The functionality I'm trying to implement relates to zooming. I've currently implemented something along the lines of Bob Powell's example at http://www.bobpowell.n...more >>

Out of memory when BitBlt
Posted by mayanc at 12/18/2006 10:56:05 AM
Hi, I'm using this code in order to draw to a non-client area in a windows control. After a while I'm experiencing a slow down. If I continue using the control, I get an "Out of memory" exception in the WndProc method. Does anyone can see the problem? I will appreciate any help! The Cod...more >>

Can't load TIF files generated from a scan or Office mdi documents
Posted by JuanPablo Jofre at 12/16/2006 4:41:01 PM
Hi, I'm trying to load images either generated from my scanner or exported from an office mdi document using different lines of code and all of the return the same exception: System.ArgumentException. I know the file is OK because I can open with any installed viewers on my PC (IE, ImageVie...more >>



Explorer preview
Posted by Fabio Z at 12/14/2006 2:13:42 PM
How can I make to let the windows explorer show the thumbnail of an image file saved in a my format? To explain, I would like to obtain the thumbnail in the explorer as Paint.Net do with its pdn files. Thanks. ...more >>

When to use CreateGraphics, FromHdc and FromHwnd
Posted by Frederik Vanderhaegen at 12/14/2006 12:00:00 AM
Hi, I'm a newbie when it comes to working with GDI+ and I'm stuck on how I've to create my graphics object. So far as I know, there are 3 methods (this.CreateGraphics(),Graphics.FromHdc, Graphics.FromHwnd). But can somebody tell me what the difference is between these methods and when to ...more >>

Vector Drawing Program
Posted by Darrell Sparti, MCSD at 12/13/2006 9:44:39 AM
I'm creating a vector drawing program. The user can drag shapes onto the drawing area. When the user clicks a shape, selection points appear at each corner and at the midway points of a surrounding rectangle. There's also a rotation selection point that, when the user places the mouse over th...more >>

Capturing a window's image
Posted by Nayan at 12/13/2006 1:12:31 AM
Hi, I have a small question... "If i put the window out of visible area of the screen (the window is still active and in front) can i capture the window's shot correctly?" The thread is being continued from http://groups-beta.google.com/group/microsoft.public.dotnet.languages.cshar= p/br...more >>

sRGB - scRGB
Posted by Martin Stainsby at 12/12/2006 6:12:18 PM
As an example. Color col = Color.FromArgb(255, 240, 94, 143); Evaluates to. A = 255 R = 240 G = 94 B = 143 ScA = 1.0 ScR = 0.8713671 ScG = 0.111932427 ScB = 0.2746773 How does R 240 become ScR 0.8713671 ? There must be a calculation for this conversion, Has anyone figured it ou...more >>

Onpaint in class derived from Control
Posted by Sanchez at 12/12/2006 2:56:22 PM
Hello, i create a class, this class inherits from Control but the method OnPaint is never Execute... Contrariwise, if inherits from Panel or PictureBox the method is execute.... Why...? ...more >>

Diagonal Control
Posted by Sanchez at 12/9/2006 12:59:22 AM
Hi, i need a diagonal control.... a kind of Picturebox diagonal, or Panel or Button, I must work with a control, not mage.... It's possible? Thanks...more >>

Find the resolution of images
Posted by Subbu at 12/8/2006 12:58:13 AM
To check the resolution of images is 300 DPI or not I using this code. Is this correct way to find the resolution of images? Dim MyImage As System.Drawing.Image = Nothing MyImage = System.Drawing.Image.FromFile(ImageFile) Dim sf As SizeF = New SizeF(CSng(MyImage.Width) / MyImage.HorizontalR...more >>

About "Creating transparent Windows Forms controls" - test.JPG (0/1)
Posted by Sanchez at 12/8/2006 12:37:28 AM
Hello, Bob help me! :) i tried your code but the graphic obscures the PictureBox control... Can you help me please? :) This is my code: Your class: using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data;...more >>

Combine transformations?
Posted by Fabio Z at 12/7/2006 12:00:00 AM
Hi all! Ok, I'll try to explain :) Let's say I have a well known transformation (let's say rotation of 10°, but can also be a translation or something). I have 2 Graphics (g1 and g2) of wich I don't know if they have some transformations set and transformations done on g1 can be differe...more >>

Object is currently in use elsewhere
Posted by andreas.skaar NO[at]SPAM gmail.com at 12/6/2006 5:39:53 AM
Hi, Im getting this exception: Object is currently in use elsewhere. StackTrace: at System.Drawing.Graphics.CheckErrorStatus(Int32 status) at System.Drawing.Graphics.DrawLine(Pen pen, Int32 x1, Int32 y1, Int32 x2, Int32 y2) does anyone have any ideas on what is wrong or how to check...more >>

Render graphics to Form, or to PictureBox.Image?
Posted by Jeff at 12/5/2006 5:19:40 AM
I'm developing an application where I need to draw potentially very large graphics. I've toyed with a couple of different approaches, and I wanted to find out from the experts which approach is the "right" way to do it: 1) Render directly to the Form. The problem with this is that it requir...more >>

Set 'Transparent Background Color' On System.Drawing.Image Object?
Posted by A_StClaire_ NO[at]SPAM hotmail.com at 12/4/2006 3:05:59 PM
hi, suppose I have a .gif with a cyan-colored background. I'd like this ..gif to appear as if it had a transparent background. using Visual Studio 2005, is there any property of the Image object I can set to facilitate this? something like... image.transparentBackgroundColor = System...more >>

Render using DashPattern is very very slow
Posted by Patrick van Dijk at 12/1/2006 6:41:21 AM
Take a look at the following sample code....the part which renders using a DashPattern is very very slow. The same rendering using a Solid pen is hundreds of times faster. Anyone, any idea why? using System; using System.Collections; using System.Drawing; using System.Drawing.Drawing2D; ...more >>

Need help on calculating Resolution of image
Posted by Subbu at 12/1/2006 1:33:37 AM
I have a situation when user uploads image with lower resolution (less than or greater than 300 DPI), I need to warn him message, to do that I need to calculate resolution of uploaded image for which I am facing problem. Can anyone please give me some code to find the resolution of image or link...more >>

Working with indexed bitmaps
Posted by Jeff Johnson at 12/1/2006 12:19:51 AM
I have a need to load a PNG that is 8bpp indexed, overlay half of the graphic with another PNG that is 8bpp indexed, and then save the new image to a file, again as 8bpp indexed. The .NET implementation of GDI+ seems to dislike indexed graphics (in the sense that it makes it so damn difficult ...more >>


DevelopmentNow Blog