all groups > dotnet drawing api > march 2007
Filter by week: 1 2 3 4 5
Resize Multipage TIFF
Posted by landers at 3/29/2007 11:57:19 PM
Hi All,
I'm am having trouble resizing a multipage TIFF file. The TIFF is 640x480
and I am trying to resize ALL frames to 320x280. If I resize it by creating
a new bitmap at the target size and resave, it loses the pages. If I loop
through all the pages and resize each page into new bit... more >>
Transformation offset factor
Posted by mash at 3/29/2007 7:20:00 AM
I'm trying to get my head around working with the Matrix class.
I'm doing something manually that I'd prefer to do with a transformation.
Basically I have shape objects that are responsible for drawing themselves
on a surface. The shapes all store their Positions.
I calculate an offset facto... more >>
Image quality: ImageFormat.Jpeg
Posted by nvx at 3/28/2007 1:04:47 PM
Hi,
is there a way to set the output quality of a saved JPEG graphics? I
need to save some graphs (using Bitmap.Save()) into files and would
like to have more than one file format available. I know PNG is
probably the best format for a raster line graphics, but some people
prefer JPEG or BMP to... more >>
GIF not animating after resize
Posted by Fong Lun at 3/27/2007 4:07:42 PM
I have a GIF which its dimensions is 200x300 pixels and it is animating fine.
But after i resize it to smaller dimensions (133x200 pixels), it doesn't
animate anymore.
Why is it not animating ?
Thanks.... more >>
Using Graphics.DrawImage with transparent Bitmaps
Posted by anorrie NO[at]SPAM sondex.com at 3/26/2007 8:08:36 AM
Hi,
I draw a BitmapA, a mostly white picture with some black lines (drawn
from an array)
I call BitmapA.MakeTransparent(Color.White)
I use Graphics.DrawImage (...) to draw the picture to screen
When I have to refresh the screen again (the array has changed) I want
to draw to the same b... more >>
GDI+ Crashing!
Posted by Smokey Grindel at 3/23/2007 8:31:12 AM
I have an app that runs in the system tray. It takes an icon from the
programs resources then draws two rectangles on it and numbers... the wierd
thing is its crashing... here is the exception I am getting
System.ArgumentException: Parameter is not valid.
at System.Drawing.Biutmap..cto... more >>
How to change the back ground color of RichTextBox when Enabled = false ?
Posted by James at 3/22/2007 8:39:13 PM
When the control is disabled, the text back ground color fade to gray, How to change the color?
From http://www.developmentnow.com/g/20_2004_10_0_0_0/dotnet-framework-drawing.htm
Posted via DevelopmentNow.com Groups
http://www.developmentnow.com... more >>
Draw multiple resolution images on a PictureBox
Posted by active at 3/21/2007 9:36:55 PM
One reads an image from a file that has, maybe, a resolution of 300 PPI.
And another image that is 600ppi.
And Draw them it onto a PictureBox.Image that has a 96ppi resolution.
How does one go about maintaining the correct size (inches)
(I don't know the correct term to describe this kind of ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How to display image from memory stream to an image button?
Posted by Snow at 3/21/2007 7:11:33 PM
Hi, I'm creating a asp.net web application using vb.net.
I have 7 images from stream and I put it inside a array. The problem now is how can I put those images inside my image button web server control?
I tried using response.outputstream it works but it overwrite my layout only one image is b... more >>
Moving The View in a Text Box to the last line added ?
Posted by Darth at 3/21/2007 11:17:37 AM
Hi,
I have added a textbox (richtextbox) to a form. I keep on appending
text to this textbox. How can I cause this textbox to automatically
scroll down to the text that has been added recently ?
TIA,
Darth
... more >>
PrintDocument output enlargement problem
Posted by Leo2 at 3/21/2007 9:50:00 AM
Hi,
I am rendering a reporting service report and using the PrintDocument class
to print the resulting byte array. I set the defaultpagesettings to the
printer defaultpagesettings (this is all done in asn asp.net application).
When printing on our development SBS server this prints corre... more >>
Flicker, even with BufferedGraphicsContext
Posted by Nik Coughlin at 3/20/2007 12:00:00 AM
Hi,
I can't seem to elimate flicker. I'm drawing to a panel via its OnPaint.
I've tried setting the form's doublebuffer to true, to no avail, so I tried
using ControlStyles.OptimizedDoubleBuffer, still no good. Then I tried
using good old BufferedGraphicsContext in the panel OnPaint, whic... more >>
Why my drawings are being deleted?
Posted by Overseer at 3/18/2007 11:07:05 PM
When I draw something in windows form with gdi+ and minimize it. Object that
I drawed them before the minimizing was lost from window. How can I solve
this problem??
... more >>
Drawing graphs
Posted by Yasin Cepeci at 3/18/2007 10:51:25 PM
What is the perfect way to draw a graphic like Performance graphic of
Windows Task Manager.
I tried it with gdi+ but it wasnt beautiful like task manager's.
Which metod or namespace I have to use?
... more >>
Tif file parameters question
Posted by Robert Dufour at 3/18/2007 4:14:52 PM
I create a 32bpp rgb bitmap in my code to write some text to it then convert
it to a monochrome. My original bitmap is 1728 W by 2261 High with a
resolution set of X= 204 and Y = 196.
After converting it to a monochrome bitmap it has the same pixels height
width and resolutions.
I then save ... more >>
How to create a Bitmap specifying size in millimeters?
Posted by EKamashev NO[at]SPAM gmail.com at 3/18/2007 3:26:52 PM
May be I missing something but how do I create a Bitmap object
specifying size in millimeters? Bitmap constructor deals only with
pixels. How about millimeters?
... more >>
Form not painted. Or is it?
Posted by Nayan at 3/18/2007 12:29:22 PM
I have been working on a card game (called Uno) for past few days.
Language used : C# 2.0
When I start a new game, a dialog window pops up asking the name of
the player. I enter the name, and then cards are distributed to the
computer and player. Then I set a flag true, to signal that the clie... more >>
Writing to a monochrome bitmap
Posted by Robert Dufour at 3/16/2007 12:48:00 PM
Apparently you cannot write directly to a monochrome bitmap so you gotta
start with an 24bpprgb and convert it to a monochrome. is that right? if
not, how can you write text to a monochrome bitmap?
I have started with writing to an rgb bitmap and am trying to convert it to
a monchrome one b... more >>
TIFF Creation Issues...
Posted by Doug at 3/16/2007 6:49:15 AM
I have a small application that reads a multipage TIFF (thanks Bob Powell!)
and then simply rewrites the pages to a new TIFF file. It doesn't do
anything to it except extract the pages and then reassemble them into a new
file. The problem is that the new file is 778kb and the old file was on... more >>
Bad JPEG quality when saving an Image object
Posted by vasyl at 3/16/2007 6:42:05 AM
Hi All!
I’m trying to draw some text on image background and save it as jpeg.
Unfortunately the text looks fuzzy even though I assign 100L to the Quality
encoder parameter.
Here is an example:
I create a bitmap in memory and fill it with blue color RGB(93, 160, 231).
Then I draw a te... more >>
Transparent ListView
Posted by nano2k at 3/16/2007 4:24:12 AM
Hi
Is there a way to make my listview's background transparent?
When trying to set a transparent color to the background of a
Listview, I get this error message:
"This control does not support transparent background colors"
I didn't find any solution yet.
Thanks
... more >>
GIF Animation - Windows forms versus browser display
Posted by Seigfried at 3/15/2007 10:19:41 PM
GIF animations contain a frame display time that control how rapidly
the new frames are displayed during the animation. The ImageAnimator
class in GDI+ provides the UpdateFrames method which seems to do the
same thing. (I discovered a page which claimed that an internal rate
of 50 ms was used. I... more >>
Region intersection with a Graphics object?
Posted by Israel at 3/14/2007 12:33:43 PM
I've created a user control that displays shapes at various zoom,
rotation and offsets. Originally I wrote this to just update the
background image and that worked relatively fine except when I zoomed
in really far and it effectively had to resize it to be a very large
bitmap. I decided to do ... more >>
New to VB.NET, problem with disappearing image
Posted by hboothe NO[at]SPAM gte.net at 3/14/2007 12:32:59 PM
Hey, all, I'm new to VB.NET, coming from VB 6 and I'm having a problem
with the persistence of graphics. I use some graphics commands to put
an image in a PictureBox control like this:
Dim g As Graphics = PictureBox1.CreateGraphics
Then I use some graphics commands like this:
g.DrawLine ... more >>
Get the relative position of an picturebox inside a form to the wi
Posted by Joe at 3/14/2007 8:23:28 AM
Dear all
I place a picturebox into a form with position (0,0) - left, top of the form
how can i know the relative position of the picturebox with the window
since the top left of the window = (0,0)
i want to know the offset position of the picturebox with the window... more >>
how to extract the images from a mpeg file
Posted by Joe at 3/14/2007 4:36:16 AM
how to extract the image from a mpeg file
... more >>
how to get an jpeg image histogram
Posted by Joe at 3/13/2007 10:55:07 PM
I want to get the histogram of an jpeg image into an array
e.g.
R 256 size and the number of pixels
G 256 size and the number of pixels
B 256 size and the number of pixels... more >>
Detect circle overlapping line
Posted by Nik Coughlin at 3/13/2007 12:00:00 AM
Say I have drawn a number of lines on a form (forming a polygon), and I know
the coordinates for each point in the polygon. Now, I want to draw a circle
on the form, but I want to make sure that it doesn't overlap any of the
lines.
The approach I am thinking of goes something like this:
... more >>
how to draw/resize/move/rotate shapes on a canvas like Visio !!?
Posted by Bishoy Ghaly at 3/12/2007 8:12:25 PM
does anyone know how to draw, resize, move and rotate shapes on a canvas
like Visio !!?
any examples or source code will be helpfull.
thanks guys.
... more >>
Auto Size Lable to Text. How can i do this on CF2.0??
Posted by iKiLL at 3/12/2007 2:15:57 PM
Hi All,
I am trying to Bulid Windows Mobile Forms Control with C# in VS2005 using
CF2.
On this control A lable is created and some text set for the control. My
problem is that i dont know how lond the text is going to be. so i need to
set the height and width of the label a cording to th... more >>
Bob Powell's "How to draw a rounded rectangle"
Posted by GraGra33 at 3/10/2007 12:00:00 AM
Bob,
I've found your GDI+ FAQ a very useful resource and would like to make a
small contribution to it.
I' was just flicking through the FAQ this morning and came across the "How
to draw a rounded rectangle" article and noticed that the DrawRoundRect
ssubroutine wasn't optimised.
The ... more >>
Printing bug!
Posted by cosmin111 at 3/9/2007 4:36:02 AM
I'm using printing sample from here :
http://msdn.microsoft.com/msdnmag/issues/03/02/PrintinginNET/
With Hewlett-Packard HP-GL/2 Plotter driver the aplication draw on desktop
window .
Kind regards,
Cosmin
... more >>
Problem Using LinearGradientBrush
Posted by Tim Haughton at 3/9/2007 4:20:28 AM
Hi, I'm having an 'issue' using the LinearGradientBrush. I'm sure it's
something I'm doing, or not doing, but it still has me flummuxed.
I've distilled the problem down into a simple custom control. To see
the problem, create a new class, and derive from Control. Enter the
following code:
S... more >>
Create a semi-trasparent layer
Posted by Paolo Niccolò Giubelli [Axettone] at 3/8/2007 4:29:33 AM
Hi guys! Is it possible to create a transparent layer where I can write some
text? This layer should be visible even when I run an image viewer in
fullscreen mode.
Thank you in advance,... more >>
Finding the position of the task bar
Posted by peter.mcclymont NO[at]SPAM gmail.com at 3/5/2007 2:05:09 PM
Hi There,
I am writing a C# .NET 2.0 application. It is borderless, but I never
want it to cover the task bar.
How can I get the position and size of the task bar in C# .NET 2.0.
Thanks,
Peter.
... more >>
Dissapearing mouse
Posted by peter.mcclymont NO[at]SPAM gmail.com at 3/5/2007 12:30:44 PM
Hi There,
I have a C# .NET 2.0 application.
What I need to do is make the mouse pointer dissapear if they don't
move the mouse for over a second. It would appear again once they
start moving the mouse again.
Of course these things would only need to occur when the mouse is over
my C# app... more >>
Problem with Vertical Scrollbar
Posted by msedi at 3/5/2007 10:20:47 AM
Hello,
has someone ever had the problem that actions that can occur in the
scrollbar can crash the whole application? In my application I have a
scrollbar
to scroll through a volume data of medical images. When I scoll by
clicking the up/down buttons
several time the application crashes in a... more >>
Creating transparent buttons
Posted by peter.mcclymont NO[at]SPAM gmail.com at 3/4/2007 7:29:41 PM
Hi There,
I am creating a C# .NET 2.0 application.
I am trying to create transparent buttons like the latest version of
google earth. I am not really sure where to start. Some sample code is
what I need.
Also later on I need to be able to get it to fade in and out.
Thanks,
Peter.
... more >>
How do you copy a Graphic to a Bitmap Image?
Posted by icepick72 at 3/4/2007 11:49:59 AM
On an academic note, I want to copy a Graphic to an Image (Bitmap).
I have the Graphic object but not a originating image; this is because
I'm overriding the PrintDocument class OnPagePrint method which only
provides me an e.Graphic (see code sample below).
The FCL doesn't seem to natively sup... more >>
Pixel Color Changes with AlphaValue in GDI+,C#
Posted by msedi at 3/2/2007 7:58:26 AM
Hello,
I'm having a problem using the Bitmap. I have a bitmap (32-bit ARGB)
which I use as an overlay. The user can draw into this overlay to
define several regions.
The image is created like this:
MaskBitmap = new Bitmap(Width, Height,
PixelFormat.Format32bppArgb);
and I ... more >>
3 color gradients
Posted by bigd58 NO[at]SPAM gmail.com at 3/1/2007 4:47:42 PM
How would I go about drawing a linear graident more complex than 3
colors? For example, recreating the gradient control available in
photoshop, where you can place "markers" at more than 2 points, and
specify the color of each marker.
Any help appreciated.
... more >>
Sending compressed image bits to Printers?
Posted by Robert Hooker at 3/1/2007 10:50:10 AM
Hi All,
I'm printing images with fairly large dimensions and color depth. As other
have posted, I'm seeing huge print queues being generated when I print
these.
My print code looks like this:
PrintImage(Graphics grx)
{
Image myImage = ....
grx.DrawingImage(myImage, new Rect... more >>
Draw image without stretching
Posted by MLM450 NO[at]SPAM hotmail.com at 3/1/2007 5:07:28 AM
Is there a way to draw an image in a box so it fills the box without
stretching the image? In other words, the image adjusts size to fit in
the box but does not alter its X-to-Y ratio. Thanks.
... more >>
|