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 >>
Don't see what you're looking for? Search DevelopmentNow.com.
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 >>
|