all groups > dotnet drawing api > june 2004 > threads for june 8 - 14, 2004
Filter by week: 1 2 3 4 5
Ellipse Area Focus
Posted by suresh at 6/14/2004 9:14:58 PM
Hi All,
How to select a circular area from an image in .NET.
regards
Suresh
..
... more >>
Transparent Line Control
Posted by John Mark Howell at 6/14/2004 3:21:24 PM
I'm trying to create a transparent line control. That is a control that
simply draws a line from upper left to lower right of it's rectangle.
Here's the catch, I want the control to be transparent so I can place this
control on top of other controls (example, drawing a line between two
picture ... more >>
Metafile Anti-alias
Posted by Andrew Deren at 6/14/2004 2:08:01 PM
Is there a way to make drawing of Metafile (WMF) anti-aliased?
When I draw any metafile I get jagged edges for lines or circles.
I tried using:
Graphics.InterpolationMode
Graphics.PixelOffsetMode
Graphics.SmoothingMode
and they don't do anything for metafiles. They do work when I use drawlin... more >>
Resizing images
Posted by Steve Peterson at 6/14/2004 8:53:25 AM
Hi
First - I'm not a image expert so please forgive me if this sounds like a
stupid question
Due to another programmer quiting in the middle of a project, I've inherited
his project to finish. It's a ASP.NET app in which the user can upload an
image (*.jpg, *.gif, *.png) and it gets saved t... more >>
JPEG Header Manipulation
Posted by mphanke at 6/12/2004 1:06:22 PM
Hi,
is there a way to manipulate the header of the JPEG-file before writing
it to disc? I need to fill the comment of the JPEG file - do I really
have to parse back and insert it into the file? I get raw data from IEEE
1394-Camera, grab a specific frame, do some calculations and then
I'v... more >>
Object in Use Exception while Double Buffering
Posted by Brian Cornish at 6/12/2004 11:59:06 AM
I have a screen saver application that is running well, but after a period
of time I get "The object is currently in use elsewhere" exception. The
stack is as follows:
at System.Drawing.Graphics.EndContainer(GraphicsContainer container)
at
System.Windows.Forms.DibGraphicsBufferManage... more >>
HasMorePages
Posted by GW at 6/12/2004 8:37:34 AM
Is it possible to set the pev.HasMorePages = True outside
oPrintDoc_PrintPage() ?
Tried setting to True in sub LS_PAR7310() but does not do a page eject.
Any suggestions other than placing the contents of sub LS_PAR7310 in
PrintPage?
Thks in advance GW
Private Sub oPrintDoc_PrintPage(B... more >>
Small Icons in dotnet
Posted by RichM at 6/11/2004 9:19:01 AM
Is there a way to specifically draw small icons in dotnet? or do I have to use the Win32 API?... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Help on adjusting printer margins
Posted by spam NO[at]SPAM sartor.se at 6/11/2004 2:24:34 AM
(VB, 1.1 Framework)
In the PrintPage event handler I retrieve the printer margins using
GetHardMargins as been discussed in several other posts. This works
fine and I'm able to do drawing to the Graphics object. When
previewing everything looks fine (don't need the hard margins when
doing the... more >>
DirectX rotation of matrix
Posted by Sean at 6/10/2004 3:24:01 PM
Is there a better discussion group for DirectX? Its not in the SDK section.
I have a matrix where I have displayed my landscape. I figured out how to look left and right by doing a Matrix multiply and rotating the landscape around the up/down axis. Now I wish to look up and down. I assume I a... more >>
Parallel Lines
Posted by AVICalc at 6/10/2004 2:41:02 PM
I have a array of point structures that make up a number of line segments. Using DrawLines, I want to draw two lines, one on each side of the points, that are equally offset from one another regardless of the angle of the line segments. I’m sure there’s got to be a fairly simple algorithm I can ... more >>
Convert e.Graphics to an image or bitmap
Posted by Charles A. Lackman at 6/10/2004 1:13:28 PM
Hello,
I have created a complete PrintDocument and need to create an image from it.
How is this done?
e.Graphics.SmoothingMode = Drawing2D.SmoothingMode.HighQuality
e.Graphics.DrawString(Line1.Text, FontLine1, TheBrush, Thelocation1, 390 +
yPos, AStringFormat)
e.Graphics.DrawString(Line2.T... more >>
Need Your Advice on "DrawString on Panel with AutoScroll"
Posted by johnwelch1024 NO[at]SPAM hotmail.com at 6/10/2004 11:16:09 AM
I'm trying to use the DrawText() method to draw some very long string
text on the Panel with AutoScroll enabled. However, for some unknown
reasons, I could not trigger the ScrollBar to show up.
Here is the simplicied section of drawing code:
private void panel_Paint(object sender,
System.Wi... more >>
Painting on palette based bitmaps by index
Posted by Carles P.V. via .NET 247 at 6/10/2004 2:30:11 AM
"You can't wrap a Graphics around an indexed-format image. [...]"
So, there is no way to paint specifying palette index. You are forced to paint by RGB value. Why this limitation?
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>OFvyPcbZbUWnMgyzU7Tdhg=... more >>
Uxtheme skinning
Posted by Martín Heras at 6/10/2004 1:08:03 AM
Hello everybody...
I am trying to apply some parts of the WinXP skins in panel controls. I am
using the Uxtheme wrapper which you can download from www.codeproject.com
and it is good.
If I want to do what I explained, I have to pass a string to a function
which makes the drawing. The string ref... more >>
OCR Application! how to go about it
Posted by Shahzad Atta at 6/9/2004 6:44:34 PM
Hi there,
I have developed an OCR application using Java Advanced imaging API's and
Back propagation neural network. Now I need to write an application on
microsoft platform which should be able to capture images from video/web
camera, extract text from it and recognize the text . In msdn I fo... more >>
GDI+ DrawLines doesn't overlap
Posted by Jim at 6/9/2004 4:45:02 PM
Has anyone had any success in using a graphics pen
to draw overlapping straight lines using the GDI+
DrawLines Method? If so, how did you get them to
overlap without occlusion?
Please note: DrawLines is not the same as DrawLine
-jc... more >>
GDI+ mouse over a line
Posted by John Mark Howell at 6/9/2004 3:55:16 PM
How would I determine when a user ran their mouse over a GDI+ line that I
have drawn on a form? The intent is to pop up a window displaying
information regarding the line when the user moves their mouse over it.
... more >>
Does anyone have links/ examples of using the CustomLineCap class?
Posted by at 6/9/2004 3:34:25 PM
Hi,
I need to create a few linecaps using the CustomLineCap class, just
wondering if anyone has come across and examples on how to actually do it...
thanks,
Kieron
... more >>
saving image - best possible JPEG quality
Posted by Michał Januszczyk at 6/9/2004 2:51:02 PM
Is there any possibility to save Bitmap as JPG, howeve
with better quality than allows the following code
...
encoderParameters.Param[0] = new EncoderParameter(Encoder.Quality,100)
foreach( ImageCodecInfo encoder in encoders )
if( encoder.MimeType == "image/jpeg"
img.S... more >>
Rounded Corners
Posted by Nice Chap at 6/9/2004 2:20:15 PM
Has anybody got code to round corners of usercontrols and group boxes please
?
... more >>
Image format conversion
Posted by Steve C. Orr [MVP, MCSD] at 6/9/2004 1:44:27 PM
For example, how do I convert a GIF to a JPG (and vice versa)?
Also, If I use GetThumbnailImage on a GIF file and save the resulting
thumbnail to a file, is that thumbnail a GIF still or does it become a
bitmap or some other type?
... more >>
Getting Horiz and Vert resolution of image
Posted by Ohmar at 6/9/2004 12:51:03 PM
Is there any way to get information on image resulution,
however without creating image data buffer in memory
I mean that I would like to read this information from som
header or sth. like that, and not by loading the bitmap and getting
its Width and Height property...
I need to check resoluti... more >>
how to: color components breakdown
Posted by Ric at 6/9/2004 6:56:02 AM
Hello, I need to be able to derive which colours, and their percentages, that make up a solid color image (a square) for a chemical analysis application I am writing in VB.NET. For example, a pink square. I need to be able to determine which colors are being used (red and white in this case) and w... more >>
A generic error occurred in GDI+.
Posted by Mats Boberg at 6/8/2004 7:25:26 PM
Hi,
I'm developing a webservice [webmethod] that gets a byte array that contains
Points.
I create a bitmap and graphics object to handle the drawing.
I decode the byte array to points and write them to the bitmap.
Then I want to save the Bitmap to disk with Save, but I allways get the
... more >>
BitBlt
Posted by Bob Thatcher at 6/8/2004 7:18:54 PM
OK, I'm trying to draw to an image and then later BitBlt that image to a
Graphics. I'm able to DrawImage() with the "saved" image, but BitBlt'ing
results in Black. I've seen this posted a number of times, but for the life
of me, I still can't get my head around what I'm doing wrong...slightly
co... more >>
High Performance Image Cropping
Posted by Michał Januszczyk at 6/8/2004 4:41:03 PM
Is it possible to "crop" image but using only one memory buffer
currently I do craete a copy of the region that should remai
after crop operation and dispose the original bitmap
However, the images I deal with are huge (yes, very huge), and
memory allocated for process reach almost 500MB.
Thi... more >>
Drawing images on top of images
Posted by John Wright at 6/8/2004 3:25:38 PM
I currently have a server side image control with an image associated with
it. When the user clicks a button I want to be able to draw a small black
box on the image. Here is the code I am using for the button click (in
VB.Net)
Dim objBitMap As Bitmap
Dim objGraphics As Graphics
objBit... more >>
Does GDI+ use hardware acceleration?
Posted by John Mark Howell at 6/8/2004 1:11:48 PM
Does GDI+ use hardware acceleration? I have heard that, for the most part,
it does not.
... more >>
Re: How to Drawstring with a character drawn "partially"?
Posted by kjon at 6/8/2004 1:11:45 PM
Thanks Bob. Your sites have been very helpful.
Regarding drawing text character partially, I'm not too sure how to use the
method you suggest? It would be nice if you could give me some example on
how to calculate the position of the text, or using a clipping region?
Thanks.
"Bob Powell [MV... more >>
Issue with stretched images produced by System.Drawing.Graphics.DrawImage
Posted by Martin Maat at 6/8/2004 12:43:19 PM
If I draw an image to a larger rectangle than its source I find the
resulting image :
1. to not fill the entire destination rectangle (some lines of pixels at the
right and bottom end stay untouched)
2. to be off-center (the whole image seems to be shifted a bit to the top
and left)
Drawi... more >>
|