all groups > dotnet drawing api > april 2004 > threads for april 22 - 28, 2004
Filter by week: 1 2 3 4 5
C#, Drawing place
Posted by Mathieu Chavoutier at 4/28/2004 3:16:25 PM
Hi.
I would like to have a blank place with points every X pixels, where it
would be possible to draw/place components. A little bit like the GUI of VS.
I have to be able to draw a circle or wire between components.
And possibility of zoom.
Do you know anything that could be used for it?
... more >>
Printing - Changing settings after PrintPage() is called
Posted by Jason Newell at 4/28/2004 10:54:26 AM
All,
I have a PrintDocument that has 2 pages. The 1st page needs to be
Portrait and the 2nd page needs to be landscape. Inside the PrintPage()
event, I've tried setting the e.PageSettings.Landscape property, but it
seems to have no affect. The page remains Portrait. It appears that the
... more >>
Drawing a single pixel
Posted by Martin Wheeldon at 4/27/2004 5:25:17 PM
Hi all,
How can I draw a single pixel with the graphics object? Lines seem to be a
minimum of two pixels, rectangles too. Is there a method for drawing pixels?
If the answer is obvious forgive me I'm new to this.
Thanks in advance,
Martin.
... more >>
Howcome not a group called microsoft.public.dotnet.framework.vb
Posted by Richard at 4/27/2004 3:44:58 PM
I can't seem to find a news group called
microsoft.public.dotnet.framework.vb there are csharp and asp but howcome
not a VB?? is there any way to get one?? and how can I get one if there is a
way??
Regards Richard
... more >>
Flickering in Windows Forms containing Gradient Background & Nested Controls
Posted by David Lo via .NET 247 at 4/27/2004 6:07:22 AM
Hi,
I'm developing a C# windows application and facing flickering=
problem=2E I've tried using double buffering by drawing to a=
bitmap first before drawing to screen=2E That solves part of my=
problem (those that I manually draw to the screen) but not all=2E=
I still find those child con... more >>
Overriding "CanParent" - Does not Works
Posted by Nilesh Rade at 4/27/2004 4:21:02 AM
Hi
I am having a custom Tab control. In the Control's designer class am adding the follwoing code but it is not working i am still able to drag and drop a button or other controls on tabControl. But it works if I drag and drop a control, say button on from, and hten cut and try to paste it on my T... more >>
How to make an eraser -- need new CompositingMode?
Posted by BlueMonkMN NO[at]SPAM email.com at 4/26/2004 4:49:40 PM
I am creating a drawing program as part of an application I am making
and have run into something I just can't figure out. How can I make a
nice anti-aliased eraser? My current erase just uses
CompositingMode.SourceCopy with a 0-alpha pen to draw transparency
onto the existing image. This wor... more >>
Extracting icons from dll and exe files VB.NET
Posted by Richard at 4/26/2004 3:40:06 PM
how can I extract an icon from a fil
for example this sentence
"F:\WINDOWS\System32\shell32.dll,3"
how can I extract icon nr 3 from the shell32.dll??
regards Richard
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Color.Blue.Red
Posted by Jos at 4/25/2004 4:27:05 PM
I discovered something curious today.
By accident I wrote (I'm using VB):
System.Drawing.Color.Blue.Red
instead of
System.Drawing.Color.Red
and it still worked! It gave me a Red color.
I would expect to see an exception like:
Red is not a member of Blue.
Does anybody know if it is su... more >>
Windows Printer Driver escapes in .NET
Posted by Paul Wardle at 4/23/2004 10:34:55 PM
Is there any way of sending special escapes to a Windows Printer driver
using .NET?
Paul
... more >>
Rotate and Transform problem needs explanation
Posted by James at 4/23/2004 9:33:15 PM
Hi there, i'm a newbie to GDI+ programming and am try to draw a cannon. The
cannon is drawing ok with the below code, however when i try to rotate the
cannon, the cannon rotation is not about the origin.
What i'm try to achive is the the cannon, its, turret, and its shot should
be able to rot... more >>
Image Printing & Scaling
Posted by Jason Newell at 4/23/2004 11:02:36 AM
All,
I am working on a image printing application for internal use at my
company. What I'm needing to be able to do, is basically print any size
image to any size paper, scaling the image to "Fit" the paper. The kicker
is that I must maintain the image's apect ratio (Image.Width / Image.He... more >>
Image Properties - 2nd post
Posted by Richard at 4/23/2004 10:16:03 AM
How do you access properties of a JPEG using VB.Net? When you right-click a JPEG, choose Properties, and click on the Summary tab, you can manually enter the Title, Subject, Author, Keywords, and Comments. But how are these specific properties read and set in VB.Net? Let me know if I need to post th... more >>
Small drawing application
Posted by JP at 4/23/2004 9:08:59 AM
Hi
Im not sure this is right group, but i will ask my question.
In a student project, i need to make a small drawing application in C#.NET.
The requirements are that it must be possible to draw text and to group
different texts by drawing a frame with a visible label around the text.
Other fu... more >>
GDI+ Gradient Problem
Posted by anuraguniyal NO[at]SPAM yahoo.com at 4/23/2004 5:28:03 AM
Hi,
Can any one please explain this?
I am filling a rectangle using a linergradient brush,
but sometime brush wraps around
e.g. if I do vertical gradient from clr1 -> clr2
sometimes top line of rect has clr2.
This is the code i am using
<code>
CPaintDC dc(this);
Graphics graphics(dc.m_... more >>
Problem: transparent form drawing and double buffering
Posted by CS at 4/22/2004 7:47:11 PM
Hello,
i want to create a transparent overlay drawing that pops up temporarily. As
I don't have anything like Swing's GlassPane, I created a new Form subclass
that is transparent, and draw in this Form class.
Works beautifully. With the exception that there is a short flicker when the
Form co... more >>
Region from GraphicsPath issue
Posted by Glenn Chittenden Jr. at 4/22/2004 3:22:03 PM
I use a GraphicsPath to generate a Region, which is then used for hit
testing. The problem I have is that when I use GraphicsPath.AddPolygon, the
region I get is hollow, so any hit testing inside the polygon fails.
Is there a way to fill the interior of the polygon path, the same way in
which... more >>
Loading an embedded bitmap in C#
Posted by Ted Williams at 4/22/2004 2:05:37 PM
Hi,
I have a question: How do you load an embedded bitmap resource in C#? I
have tried the following but it doesn't seem to want to work:
Module mod = Assembly.GetExecutingAssembly().GetModules()[0];
IntPtr hInst = Marshal.GetHINSTANCE( mod );
bmToolbox = Bitmap.Fr... more >>
COLORREF vs Color (clr)
Posted by Bob at 4/22/2004 1:21:03 PM
Another newbie question
If I understand correctly the COLORREF holds a DWORD type which is basically a uint in C#. I now have a color structure I need to get the old style COLORREF into. However my number is to large (16,777,215). So when I use the Sytem.Drawing.FromArgb my colors are maxed out ... more >>
Problem converting Bitmap to Tiff
Posted by Ryan at 4/22/2004 11:26:07 AM
I'm having issues writing text to a tiff file. However I have no problems saving text to a Bitmap
Here is an example of the code that works with Bitmap
Dim objBitmap As New Bitmap(600, 600
Dim objTextBrush As New TextureBrush(objBitmap
Dim objFont As New Font("Verdana"... more >>
Accessing LOGFONT Structure via ToLogFont
Posted by Bob at 4/22/2004 10:11:04 AM
I need to use the LOGFONT structure every once in awhile in an application I have written. Currently I am using the FONT class under the framework and need to use the "ToLogFont" method of this class. I have been unable to determine how to get the structure "LOGFONT" from within my application to f... more >>
|