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 > april 2004 > threads for april 1 - 7, 2004

Filter by week: 1 2 3 4 5

question about OnPaint() and control creation
Posted by Dave at 4/7/2004 4:14:20 PM
Hi all, I'm creating a control derived from System.Windows.Forms.Control I override the OnPaint() function The control takes place on a form with a background image. Because I've some problems to draw properly my control, I decided to test it with a OnPaint() function which does *absolutely n...more >>

Window co-ordinates to client co-ordinates
Posted by Saurabh at 4/7/2004 2:10:47 PM
Dear All, I have an application where I set the parent of my .NET form as the MDIClient Window of the WIN32 parent application. For some reason, If I get the location of this form, it is returned to me in the window co-ordinates but if i set the location, it gets set in client co-ordinates. I ...more >>

Help! How can I recognize string and graphic shapes draw in a graphic area?
Posted by Maximilian at 4/7/2004 7:41:13 AM
I need to "draw" a lot of strings and various graphic shapes (about 100000 in a panel's form, with AutoScroll set, and I have to recognize them in case of MouseDown events I've already used Label and GraphicsPath objects but they are too slow when use scrollbars How can I solve this problem ...more >>

calculating vector (rectangle)
Posted by Alex Wagner at 4/6/2004 3:29:06 PM
how can I calculate the width/height of a rectangle defined by two top-left and bottom-right coordinates (in my case 4 int values)? I have a web app where I need to cut out a section from an image and display on the fly. the section is defined via those four int (pixel) values thnx ...more >>

Support skin in winform
Posted by Shachar Matyas at 4/6/2004 8:36:05 AM
Hi All, I want my application to support external skins like media player. I write in C#, how can I do it? Is there any web site that describe how to support this option in winform using c sharp? 10x, Shachar. ...more >>

How to get the dimensions of an image file quickly?
Posted by Chris Lomont at 4/5/2004 9:13:24 PM
I want to parse 1000's of image files quickly and get the image dimensions, but creating an Image * object and using the Width and Height properties is very slow. Is there a quicker way in .NET? I can use outside libs to read JPEG, GIF, BMP, PNG, etc, headers to get them, but the coding involved ...more >>

Handling 16bit grayscale images
Posted by charon NO[at]SPAM schiefermueller.com at 4/5/2004 12:41:38 PM
Hi!! i just asked this question, under another circumstances: I get 16bit greyscale from an scanner, and i want to generate thumbnails out of it. i thought it would be quite easy to use an picturebox under c#, but i have problems to open the files, couse i get "an generic error occured in gdi...more >>

Finding End Points for a skewed/rotated Ellipse drawn with GraphicsPath
Posted by kwest2123 NO[at]SPAM yahoo.com at 4/5/2004 11:19:45 AM
I am trying to find the endpoints for an ellipse that I am drawing using the GraphicsPath class. The ellipse is being drawn with a shear matrix being applied to it, and after the shear is applied, the point in the GraphicsPath that used to represent the left endpoint of the ellipse now is a poi...more >>



Drawing GURU Help - Icon & Filestream Help .NET
Posted by rcl58 NO[at]SPAM iglou.com at 4/5/2004 9:27:06 AM
The code below gives me an "Out of Memory" exeption when the PictureBox1 is assigned. If I use the same code but relpace the CIRC.ICO with a Test.JPG file it works! Is there something special about .ico files? Suggestions? Thank Bob Dim fs As New FileStream("c:\CIRC.ICO", FileMode.Open, ...more >>

Open 8bit Images
Posted by charon NO[at]SPAM schiefermueller.com at 4/5/2004 2:20:09 AM
Hi! i have problems on opening 8bit grayscale TIFF images in MS C#. when i use Image.FromFile i always get the same exception "a generic error occoured in gdi+". i dont get behind it, becouse every other programm has no problem with these images. the same exception occoures when i use the b...more >>

PointF addition operator
Posted by Gawel at 4/4/2004 12:00:14 PM
Can sombody explain me why there is no additin operator in PointF struct ? PointF p1 = new PointF(0, 4); PointF p2 = new PointF(3, 5); PointF p3 = p1 + p2; <-- Error -- Gawel ------------------------------- Pierwszy ³yk z pucharu nauk przyrodniczych czyni ateist±, ale na dnie pucharu ...more >>

LinearGradient Color in Window Forms (VB.NET) and Transparency
Posted by ChristosX at 4/3/2004 3:56:03 PM
Hello I filled a form with a lineargradient color (two colors) using that code Protected Overrides Sub OnPaintBackground(ByVal pevent As System.Windows.Forms.PaintEventArgs MyBase.OnPaintBackground(pevent Dim br As New LinearGradientBrush(pevent.ClipRectangle, Co...more >>

.NET PictureBox vs VB6 PictureBox
Posted by Tim Blanton at 4/2/2004 3:16:02 PM
I noticed that the .NET picturebox is a lot more memory intensive. I created an app ( VB.NET ) with a picturebox and loaded a test.bmp ( a 75mb bitmap image) when I run the app, the image loads quickly, but if I click on my form and drag it around the screen, it is very very choppy. I look at tas...more >>

Create an Image object from a Graphics object
Posted by Christian Nein at 4/2/2004 1:36:56 PM
Hello, how can I create an Image object from a Graphics object? Example: Graphics g = pnlChart.CreateGraphics(); // how can I transform this Graphics object to an image? Thanks in advance & best regards, Christian ...more >>

Image editing using gdi
Posted by Mitel at 4/2/2004 9:48:50 AM
Hi I want to use some gdi functions to draw over an image. I thinked to create a Graphic object from the image, and from that calling the GetHdc method to obtain an handle to the device context, but this doesn't work. when I use a gdi function, the image remain unaltered. ...more >>

Simple MemoryStream Problem - What am I missing?
Posted by rcl58 NO[at]SPAM iglou.com at 4/2/2004 7:09:27 AM
I am having trouble with MemoryStream.... Dim Im As Image Im = Im.FromFile("C:\smallphoto.Bmp") Dim ms As MemoryStream = New MemoryStream Im.Save(ms, Imaging.ImageFormat.Bmp) .... I get "Value cannot be null." error on the last line. Suggestions? T...more >>

When Form Focus on other Form , Paint of Graphics Will Be Lost
Posted by Lynn at 4/1/2004 11:17:35 PM
Hi~ I made a Graphics_Object on Form_Component(ex:Button, Panel, "Graphics G=Button1.CreateGraphics();"), And paint some thing on. When I change Focus to other Form then return Focus to the original Form, if other Form covers over the original Form, then the Paint of the original Form will...more >>

Image, streams and GDI+ error
Posted by Jay Jetley at 4/1/2004 5:28:35 PM
Hello! I have the following code: ..... MemoryStream ms =3D new MemoryStream((byte[])tbImage[0]); Image img =3D Image.FromStream(ms); ms.Close(); img.Save("c:\\temp\\test.jpg"); .... tbImage[0] is a reference to an Image field in an sql server database. This code throws a general GD...more >>

Drawing 16-bit Gray Images
Posted by Sporky at 4/1/2004 12:56:06 PM
Is there a way to directly draw images defined with Format16bppGrayScale? Is Graphics.DrawImage() supposed to work with these? I'm getting an "Invalid parameter used" exception in this case, not sure if it's just that DrawImage() does not work with this format, or if I'm supposed to do something e...more >>


DevelopmentNow Blog