all groups > dotnet drawing api > october 2007
Saving image on scrolling??
Posted by PickwickBob3 at 10/29/2007 3:46:01 PM
I have a form which loads a scanned image of a page of paper as a bitmap
from a file and scrolls ok. I would like to draw a rectangle on the image
with the following code but of course the image is not saved and when
scrolling occurs the rectangle is not redrawn when the rectangle scroll of... more >>
jpeg encoder
Posted by butch77 NO[at]SPAM web.de at 10/29/2007 2:06:58 AM
Hi!
I'm compressing jpgs with C# in the standard way, and I had to
realize, that the quality is pretty poor.
I'd like to switch to a 4:4:4 compression (Y:U:V)
I couldn't find anything on the web to change the standard encoder to
do that. Is there any other dotNet library that I can use to encod... more >>
Read an Image File Question
Posted by Samuel at 10/28/2007 6:37:57 PM
Is it possible to read an image file into a bitmap of a specific size so if
the file image is 1000 pixels by 1500 it will be loaded to a smaller bitmap
and shrink it in the process I can specify the exact dimensions of the
bitmap
Alternatively is it possible to shrink a Jpeg image without l... more >>
Draw an image from a file
Posted by Samuel at 10/28/2007 12:36:59 PM
I would like to print a large tiff image, the size of the tiff file is about
40k but when I create a bitmap so I can print it the size of the bitmap is
40mb or possibly much more
Is there any way to print an image directly from the file (currently I use
PrintDocument)
Thank you,
Samuel ... more >>
Print multipage tif?
Posted by M O J O at 10/28/2007 12:00:00 AM
Hi,
(using vb.net 2005)
How do I print a multipage tif?
Thanks in advance!
M O J O... more >>
Compressed bitmap
Posted by Samuel at 10/27/2007 11:16:59 PM
I need to read a tiff Image and change it slightly.
Currently I create a bitmap then I draw the original image and do the
changes.
Since the tiff is very large in size the bitmap takes a huge amount of
memory
Is there anyway to create a bitmap and keep the image compressed?
Thank you i... more >>
Gradient fill a bitmap
Posted by rob at 10/25/2007 1:51:20 PM
Hello,
If I have the following bitmap:
Dim myBitmap As New System.Drawing.Bitmap("C:\Test.Bmp")
Could somebody show me how to gradient fill this bitmap?
Thanks,
Rob Panosh
Advanced Software Designs
... more >>
Reading TIFF files
Posted by Victory at 10/23/2007 2:19:21 PM
Hi,
What does .NET have to read the compression technology used in a TIFF
file?
thx!
Mars
*** Sent via Developersdex http://www.developersdex.com ***... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Bitmap.GetHIcon leaking GDI resources?
Posted by Smokey Grindel at 10/19/2007 9:04:02 AM
when I do this code
Dim HIcon As IntPtr = bmp.GetHicon to convert a Bitmap which is just a 16x16
image I pulled from a resource originally as an icon (16x16x32bit) then
converted into a bitmap to draw on it's surface then wanted to convert back
to an icon... but when I do the other two comman... more >>
Generating a PNG8 image with System.Drawing
Posted by vladimir.knobel NO[at]SPAM trimedia.ch at 10/18/2007 5:47:55 AM
Hi everyone,
I'm working in a MCMS 2002 site and for a template I need to create
images on the fly.
The image format of choice is PNG because this images had to have a
transparent background and .NET doesn't go very well with transparent
GIFs (black background generated instead).
So everyth... more >>
Printing multiline text, how to get the correct rectangle height.
Posted by Marius Horak at 10/17/2007 8:22:55 AM
I'm using
float height;
MeasureString(text, font, size, new StringFormat(), out charCount, out
lineCount);
to get number of lines, font is Ariel 9pt.
Next
height = lineCount * font.Height;
to get rectangle height.
But the height is not big enough. It's OK for 3-4 line but late... more >>
DrawImage() performance issue in GDI+
Posted by Florin (H.P.C. Consulting) at 10/17/2007 7:20:04 AM
I am using GDI+ to develop a image editor. An image consists of a list of
text controls and image controls.
I draw everything in a picture box. I use DrawImage() to draw the image
layers, but the performance is very bad, especially when the user drags an
image (i have implemented a drag a... more >>
Preview Document
Posted by Alvaro E. Gonzalez V. at 10/16/2007 11:33:13 AM
Hi;
I'm build a wizard and it have a preview document, to this i used PrintPreviewControl, but don't
show the document, How do it?
Thanks.
Alvaro.... more >>
Create thumbs.db file
Posted by moWhite at 10/16/2007 7:35:03 AM
I have hundreds of directories with hundreds of images in each directory.
When a user steps into the directory for the first time a thumbs.db file is
created. Across a network, this can take some time.
Is there a .NET Drawing or Windows API function to create these thumbs.db
files in adva... more >>
terms of use
Posted by Enrico at 10/11/2007 2:08:00 AM
If i find a piece of code I want to use in my own program on this newsgroup,
what are the license terms to do so?
Thanks... more >>
StretchDIBits? Vista? Nvidia?
Posted by Norman Diamond at 10/11/2007 12:00:00 AM
A C++ DLL has bits for a DIB and a BITMAPINFO structure. biBitCount is 24
and biHeight is positive, treating the DIB as bottom-up[*]. On 32-bit
Windows XP and Vista systems, a C# program has Int32 variables that are
actually pointers[**] and there is no problem with those. The destination
DC ... more >>
GDI+ throw OutOfMemoryException when draw a smill dash line.
Posted by Colin Han at 10/6/2007 11:19:01 PM
I was write follow code in my product.
-----------------------------------------
public void Test(Graphics g)
{
using (Pen pen = new Pen(Color.Red))
{
pen.DashStyle = System.Drawing.Drawing2D.DashStyle.Dot;
pen.DashOffset = 1;
g.DrawLine(pen, 0, 0, 1, 0);
... more >>
Opening, Editing & Saving Animated GIF
Posted by angel1241 NO[at]SPAM hotmail.com at 10/4/2007 7:55:49 AM
Hi All
I'm tyring to edit an animated gif and saving it back as an animated file.
Can someone guide me to the write place?
Thanks
A... more >>
Create BITMAP graphics with same properties of the PRINTER graphics
Posted by pamela fluente at 10/4/2007 2:50:58 AM
I am printing on the printer graphics.
For some reason before printing (some specific parts of) and image
I need to create the image on a separate bitmap which has the same
resolution (not same size, which will be
a parameter) of the printer graphics.
This will allow me to transfer direc... more >>
RE: Drawing zoomed in portion of image
Posted by BobRoyAce at 10/3/2007 9:44:50 PM
I have an application that deals with records that all have an image
associated with them. These images are all approximately the same size
(8.5" x 11" sheet scans). What I would like to do is allow the user to
select an image (don't worry about how I'll accomplish that for this
discussion), and... more >>
gdiplus.dll location
Posted by Bryan Kinkel at 10/2/2007 5:35:42 PM
In working with PrivateFontCollections, I recently ran into this bug:
Memory corruption or an access violation may occur in a custom application
that uses the PrivateFontCollection object in Windows XP
http://support.microsoft.com/kb/901026
(Lots of fun with this one...)
So I wanted to c... more >>
Use gif animation
Posted by jaycee at 10/1/2007 9:25:38 PM
Hi All,
(please excuse the cross post with csharp, i just found this group.)
I am new to XAML & C#.
Is it possible to display a gif animation ( such as a rotating wheel ) on a
form whilst waiting for an operation to complete. I have the .gif file which
works fine when viewed in Explorer but d... more >>
Pasted clipboard text looks bad
Posted by Academia at 10/1/2007 10:05:46 AM
I copy text to the clipboard using WordPad and then retrieve it and draw it
on a panel.
The edges of the text looks bad.
I suspect that it's the result of antialiasing and the background of the
original and panel are different colors.
Can you confirm that that could cause it?
Can you... more >>
|