all groups > dotnet drawing api > september 2005 > threads for september 22 - 28, 2005
Filter by week: 1 2 3 4 5
Drawstring word-wrap
Posted by yogee at 9/28/2005 11:20:01 PM
I am creating a program to print report where I have to draw grid. (I am not
using
Crystal Report as it's not free of cost). I am new to system.drawing class.
I want to draw a text string in a definite width but variable height
ractangle. I mean full text should come in ractangle with specifi... more >>
InvalidateRect Pinvoke and C#
Posted by Tim Klaas at 9/28/2005 9:42:57 PM
Hi,
I want to use InvalidateRect from user32.dll. It seems that it doesn't
really invalidate a rectangle. The whole screen can be refreshed with
InvalidateRect(IntPtr.Zero,IntPtr.Zero,true).
But how can I refresh a rectangle? I need this function because I draw
on the desktop and I want t... more >>
Weird problem when re-painting form while moving it outside of the screen!
Posted by theunissen NO[at]SPAM comcast.net at 9/28/2005 3:47:53 PM
Hi,
I've been struggling with this problem for days on and off. Hopefully
somebody has some insight in this. I have a usercontrol which is placed
on a form. When the control gets the paint event, I use a memory bitmap
to draw on and then blit it back to the original DC (from the
graphics).
... more >>
Adding EXIF property to JPEG
Posted by Roger Beniot at 9/28/2005 2:16:07 PM
I am trying to add EXIF properties to my JPEG pictures taken w/ a Canon
digital camera. The fields I want to add related to GPS data.
I have tried the suggestions listed at:
http://www.pixvillage.com/blogs/devblog/archive/2005/03/27/176.aspx
I have tried the following:
1) adding an image w... more >>
Create and save a transparent GIF - Please help
Posted by expertware NO[at]SPAM libero.it at 9/28/2005 10:56:52 AM
Hi guys! I am back with an easy question.
Pamela
I have this task to do. Seems crazy but Later I will explain
the reason. Can anybody provide me with a simple answer.
I need to create and save to disk a .GIG image, say "blank.gif"
the image is a bitmap transparent of any size (even 1x1 wi... more >>
Problems with GetHicon method
Posted by simone.poste NO[at]SPAM libero.it at 9/28/2005 4:58:42 AM
I've a problem converting System.Drawing.Bitmap in System.Drawing.Icon
using the GetHicon method.
This is my code sample :
private void pSetIco(int parNumImg)
{
System.Drawing.Bitmap b;
b=new Bitmap(this.ilIcons.Images[parNumImg]);
this.StartIcon.Icon = Icon.FromHandle(b.GetHic... more >>
VB.NET Font question
Posted by adam.spamfree NO[at]SPAM gmail.com at 9/27/2005 5:28:21 AM
Hi, I'm having a problem with trying to make the text of a button both
bold and italic at runtime. All that i have so far is Button.Font = New
Font("sans seriff", 9, FontStyle.Italic), but i need to make it bold as
well as italic at the same time. Thanks a lot.
... more >>
Cropping resized images
Posted by David at 9/27/2005 12:00:00 AM
Hi all,
I have the following code...
Bitmap bitmap = new Bitmap((int)new_width, (int)new_height,
m_src_image.PixelFormat);
m_graphics = Graphics.FromImage(bitmap);
m_graphics.SmoothingMode =
System.Drawing.Drawing2D.SmoothingMode.HighQuality;
m_graphics.InterpolationMode =
Syste... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
invalid bitmap???
Posted by Abraham Andres Luna at 9/26/2005 11:07:36 AM
i save a compressed bitmap to an image field in my sql database:
ImageCodecInfo iciJPEG;
foreach (ImageCodecInfo cdc in ImageCodecInfo.GetImageEncoders())
{
if (cdc.MimeType == "image/jpeg")
{
iciJPEG = cdc;
}
}
EncoderParameters epsQuality = new EncoderParameters(1)... more >>
Panel_Paint gives NotSupported Exception
Posted by Srinivasan at 9/25/2005 11:20:02 PM
I'm running a WinCE4.1 Compact Framework application using VS2003.
While I run this code, I get an error saying NotSupportedException.
private void panel1_Paint(object sender, PaintEventArgs e)
{
try
{
Graphics g = this.pictureBox2.CreateGraphics();
g.FillRectangle(new SolidBr... more >>
GDI+ Performance Question
Posted by Shawn B. at 9/25/2005 9:53:56 PM
Greetings,
I asked this question earlier in microsoft.public.win32.programming.gdi and
was redirected here. So I'll try to piece together the relevant parts of
the conversation. The general theme of this question is: performance. I'm
noticing GDI+ to be slow. I've been reading alot about h... more >>
StretchDIBits in managed
Posted by tHw at 9/25/2005 5:13:19 AM
Hi all!
Can someone give me an idea how to solve my problem?
I'm writing my application in VC++ .NET. On my windows form I'm using
StretchDIBits to draw a picture in a given place. Then on this picture
I'm drawing lines, text (DrawLine,FillPlolygon etc.). The thing is I'm
changing the position ... more >>
Problem Loading Image To Form Graphics Object
Posted by Phil Galey at 9/23/2005 3:56:06 PM
I'm trying to display a PNG on a form in my VB.NET application, but it =
will only display a cropped portion of the image. I'm using the =
following:
Dim gr As Graphics =3D Me.CreateGraphics
Dim img As Image =3D Bitmap.FromFile(<Path to PNG file>)
gr.DrawImage(img, CInt(50), CSng(50), CSng(i... more >>
Poor performance drawing circles with .NET compared to unmanaged API calls
Posted by Ansgar Kuhlmann at 9/23/2005 11:34:11 AM
Hello,
I am currently doing performance evaluations with Visual Studio 2005 beta2
and .NET 2.0 beta 2.
When I paint some thousands of circles to a Windows Form using the graphics
object it takes about 4 times longer compared to unmanaged drawing into the
device context of the form (using P/In... more >>
Drawing Transparent Bitmaps
Posted by Marc at 9/23/2005 10:58:02 AM
What I want to do is to draw a series of bitmaps on top of each other with
transparency. I have one bitmap with no alpha data, and a second bitmap with
alpha.
When I load the bitmap with alpha data into the bitmap structure, the pixel
format does not show that the bitmap supports alpha. Whe... more >>
BIG TROUBLE IN GDI and API
Posted by Sunil Batra at 9/23/2005 12:00:00 AM
Hi,
I have just joined this group , i am very new to this concept of API, GDI,
drawing.
Can any one guide me from where to start the basic.
I want to build a cad project in which i have to make lines , curves, points
, 3 point ,4point beizers, rectangles, circles and so on.
I want to kno... more >>
region intersect
Posted by Zachovich at 9/22/2005 9:09:03 AM
I am rorking on a treeview who's nodes can each branch out in a few different
directions. Right now I need to determine whether two regions intersect with
each other so i can prevent the child nodes (and their child nodes; and so
forth) from colliding with each other.
all help is apreciated... more >>
A Bitmap to grayscale (C#)
Posted by RicercatoreSbadato at 9/22/2005 6:00:02 AM
My code is the following:
public Bitmap myConvertBitmapToGrayscale( Bitmap i)
{
Bitmap b = new Bitmap(i.Width, i.Height,
PixelFormat.Format16bppGrayScale);
Graphics g = Graphics.FromImage(b);
g.DrawImage(i,0,0);
g.Dispose();
return b;
}
but something's going wrong...
... more >>
recommendation
Posted by Jurica at 9/22/2005 12:06:02 AM
Hi,
I'm a beginner in graphics programming. I have the following situation:
I have to show existing bitmap in the control on the form and then put one
or several transparent layers over it which will be used for drawing.
Which control to use to load the existing bitmap on o form? Will pictur... more >>
curious about CustomControl
Posted by SharpCoderMP at 9/22/2005 12:00:00 AM
hi,
to create my own control i need to derive from System.Windows.Forms.Control
but, my control is sooooo simple - it draws only line, a separator-like
line, with a custom color and width. i dont need handling any user input
and do not use any fancy drawing routines nor i do not implement ... more >>
|