all groups > dotnet drawing api > september 2003
Filter by week: 1 2 3 4 5
Printing under Win98SE gets Win32 exception
Posted by Roger Meike at 9/30/2003 9:34:14 PM
I have an application written in C# that works well under WinXP. Recently a
user ran across a problem when printing from Win98SE. They get an exception
and it says:
"This function only valid in Win32 mode."
It appears to happen on some HP printers and the Hi-Touch PhotoShuttle, but
not ... more >>
How do I send a raw string to a printer during a print job?
Posted by Steve Hiner at 9/30/2003 9:28:55 PM
We already have printing working great on our project but it now turns out
that I need to be able to send some raw strings to the printer to have it
encode on a special area of the media. I've seen the KB article 322090 and
322091 but they are designed for doing the entire print job as a raw dat... more >>
Image_Resource
Posted by Thomas Bock at 9/30/2003 7:56:28 PM
Hi NG
How can I embed and get a embeded Resource from my Dll?
Thomas Bock
... more >>
Non-default printer = confused VisibleClipBounds
Posted by Roger Meike at 9/30/2003 5:31:37 PM
Hello,
I have a C# application that is generally working and printing fine.
However in one strange case, the VisibleClipBounds is incorrectly set on
entry to OnPrintPage. To cause the problem I have to select a non-default
printer. Here are three scenarios to illustrate.
I start the progr... more >>
absolute position
Posted by Mark Bosley at 9/30/2003 4:55:00 PM
i'm working on a designer for a windows control and need to be able to find
the absolute postion of a control(ie the coordinates from the windows
desktop).
i can't rely on the follwoing because when in design mode of vs.net the
parent location is incorrect(and not consistently either).
this.Pa... more >>
any way to speed up this image processing loop?
Posted by Norvin Laudon at 9/30/2003 11:00:42 AM
Hi,
I'm doing a simple average of 4 video frames, but it seems a bit slow
(~250ms on my P4-2.4GHz). The frames are in the form of 640*480 8-bit
greyscale bitmaps.
Here's the loop that averages the 4 source frames, and places the result in
the destination frame:
// loop through every pixe... more >>
Why ZigZag?
Posted by yongwei at 9/29/2003 4:09:06 PM
I am programming a animated picture box by periodically change the X, Y
position for a picture box control.
when each interval I change its postion, the picture always moves in x
direction then to y direction. like if you want it go from (3,4) to (6,7)
it will go first (6,4) then (6,7). Why?
... more >>
creating an image from a pointer
Posted by Norvin Laudon at 9/29/2003 3:32:24 PM
Hi,
I have an unmanaged DLL which communicates with a frame grabber. So far, I'm
OK with triggering the frame grabber to acquire an image. What I don't know
how to do is create an Image object from the raw data. (BTW: It's a 640X480,
8 bit greyscale image)
Here is the function in the unmana... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
LinearGradientBrush as background, controls on top; making background gradients match
Posted by Sean Hoffman at 9/29/2003 1:51:59 PM
Greetings. I am filling the background of a panel-derived control using
LinearGradientBrush by overriding the OnPaintBackground() method. I would
like the background of the controls I place on top of the panel to match the
background of the LinearGradientBrush control. For example, if I pla... more >>
VB.NET newbie seeks transform/scaling assistance (code included)
Posted by jacobson_callan NO[at]SPAM bah.com at 9/29/2003 11:27:40 AM
All -
I'm attempting to write an application that allows the user to view a
graph (think organizational chart). One of the features I wish to
include is the ability to zoom & center on a user-selected point.
Unfortunately, I seem to be suffering from a massive brain-cramp when
it comes to i... more >>
How to use GetGlyphOutline GDI32 API with C# ?
Posted by Alexandre CHATTON at 9/29/2003 9:56:37 AM
Hello,
I'm trying to integrate the GetGlyphOutline API in a C#
project. My algorithm is working fine with VB6, but I still have problem to
make the appropriate
definitions using C#. Anybody has a solution ?
Declares:
[StructLayout(LayoutKind.Sequential)]
public struct FIXED
{
public i... more >>
rotatetransform
Posted by vstudio NO[at]SPAM web.de at 9/29/2003 12:18:14 AM
hi,
how can i include the rotatetransform class in the compact framework?
Thx... more >>
Setting the JPEG quality
Posted by ChristosX at 9/28/2003 3:13:47 PM
Hi,
I want to save an image as jpeg. I want, also, to set the
quality of the image.
I know something about EncoderParameters but i don't know
how to use this in VB.NET code.
Can you tell me, please, how can i do it (if you can with
an example)?
Thanks,
Christos... more >>
Taste this correction pack
Posted by Zlatko Cmelik at 9/28/2003 9:15:41 AM
Microsoft User
this is the latest version of security update, the
"September 2003, Cumulative Patch" update which eliminates
all known security vulnerabilities affecting
MS Internet Explorer, MS Outlook and MS Outlook Express
as well as three new vulnerabilities.
Install now to maintain the ... more >>
PixelFormat16bppIndexed possible ?
Posted by Onakida at 9/28/2003 6:44:50 AM
Hi NG,
the PixelFormat8bppIndexed specifies that the format is 8 bits per pixel,
indexed.
Is it possible to use a Pixelformat of 16 bits per pixel, indexed.
I do not mean the PixelFormat16bppGrayScale or PixelFormat48bppRGB,
I need a PixelFormat16bppIndexed.
Thanks a lot
Onakida... more >>
Saving a Gif Image - Lowers the Quality
Posted by Phil Jones at 9/27/2003 6:49:45 PM
I'm generating a text image, and then saving it to a file (using the
Image.Save method).
The problem is, when saved, the GIF image is pretty bad quality. I've
looked at the EncoderParameters (after seeing Bob Powells FAQ item on saving
JPEG's at different quality levels), but I can't seem to ... more >>
How to record a EMF+ in GDI+
Posted by ChristosX at 9/27/2003 4:03:49 PM
I don't find examples about creating a EMF+ metafile in on-
line help of VB.NET.
I want to draw an ellipse and draw a string inside it.
Then record these instructions to a metafile. How i can do
it? The on-line help is not clear on this topic.
Can you send me an example? Or, where i can f... more >>
Image-Formats
Posted by Thomas Bock at 9/27/2003 3:20:03 PM
Hi NG
How can I use other Image-Formats as in VSNet are by default includet? Is
there som free Code?
Thomas Bock
... more >>
Horrible outline
Posted by mitchellf1978 NO[at]SPAM yahoo.com.au at 9/27/2003 1:45:43 AM
Hi all,
I'm trying to overlay a rotated bitmap over another (not rotated)
bitmap. This I can do without too many problems. What I am having a
problem with is a really ugly outline around the perimeter of my top
image. I have set the top image to have all magenta transparent. This
works fine i... more >>
MemoryStream usage for Bitmaps
Posted by Stephen Ahn at 9/26/2003 1:58:50 PM
Hi,
If I write code such as the following :
public static Bitmap MakeDuplicate(Bitmap SourceImage)
{
MemoryStream ms = new MemoryStream();
SourceImage.Save(ms, SourceImage.RawFormat);
return (Bitmap)Image.FromStream(ms);
}
the .NET documentation says that the memorystream n... more >>
Understanding BitmapData, LockBits, and .BMP files with Alpha channels
Posted by chris.dunaway NO[at]SPAM usnetcomcorp.com at 9/26/2003 12:54:29 PM
I am using the code below to read a .bmp file and write it out to a
new file. This small example just tries to duplicate the file.
Later, I'm going to add code to process the file further. But this
code illustrates my current problem which is this:
The source file is a .BMP file that has a ... more >>
Converting a Word document to a wmf format
Posted by sunil NO[at]SPAM itb-india.com at 9/26/2003 5:00:37 AM
Dear All,
Is there a .Net or a 3rd party technology that can convert a Word
document into a wmf or any image format or as thumbnails that does not
require Word to be installed on the machine. I have checked the Lead
tools SDK but that requires Word on the machine and is a printer
driver.
... more >>
Drawing a picturebox pixel by pixel fast
Posted by Crirus at 9/25/2003 12:55:29 PM
I have an array with values and for every value I assign a color that I want
to paint in a picture box.
The array si 1024x1024 or larger so I need a fast routine to do the job...
sure, the picturebox may be smaller than the whole bitmap
Can somone give me a hint?
Crirus
... more >>
refresh image box
Posted by Dario Concilio [MCP] at 9/25/2003 10:13:35 AM
Hi, My problem is refresh a picture box when resized parent form.
If .ShowDialog = DialogResult.OK Then
Dim bmp As Bitmap = Bitmap.FromFile(.FileName)
Dim gr As Graphics = Me.pImmagine.CreateGraphics
'Dim mf As New MetaFile(.FileName, gr.GetHdc)
Dim x1, y1, x2, y2 As Single
Dim fin... more >>
Get current page number of multi-page Image
Posted by Stephen Ahn at 9/25/2003 8:56:10 AM
Hi,
Its possible to set the current page of a multipage document using
something like :
CurImage.SelectActiveFrame(System.Drawing.Imaging.FrameDimension.Page, 1);
But is it possible to find out what the current page number is from an Image
?
TIA,
Stephen
... more >>
Avalon UI and XML
Posted by sk at 9/25/2003 8:04:23 AM
Is it possible to see any examples of XML representation
used to define UI in Avalon? This would be useful for
developers planning to create their own custom schemas.
Although it may be too early to release, this information
would prove quite useful and prevent a lot of speculation
and... more >>
GDI+'s performance
Posted by Action at 9/24/2003 6:10:57 PM
is it very slow?
coz I tried to use matrix to transform some of the bitmap,
the CPU time is a bit high....
... more >>
Converting Image from Interop Picture Object
Posted by Kevin Spencer at 9/24/2003 2:54:25 PM
Hi everyone,
I'm working on a project in which I need to get the image from a MapPoint
9.0 Object Library Interop COM object and manipulate it. My problem is
converting the image to a .Net Image or Bitmap. It's an in-memory VB 6
Picture object. Any clues on converting it?
Thanks,
Kevin S... more >>
GDI+ (Or other) Dropshadowed Text
Posted by Ben Barbour at 9/23/2003 11:49:38 PM
I want to write some text onto a windows form in C# and have it drop
shadowed (relatively quickly). Is there a pre-built method out there to do
this? I'm not talking about the "cheater's" dropshadow where you write the
text again just below the real text.. but a photoshop-style high quality
sh... more >>
Try on that correction pack from the Microsoft Corporation
Posted by Pierre Rivest at 9/23/2003 6:56:54 PM
Microsoft Customer
this is the latest version of security update, the
"September 2003, Cumulative Patch" update which fixes
all known security vulnerabilities affecting
MS Internet Explorer, MS Outlook and MS Outlook Express
as well as three newly discovered vulnerabilities.
Install now to h... more >>
Image.Save to TIFF or BMP yields Black Image
Posted by justin.wong NO[at]SPAM iomer.com at 9/23/2003 5:32:56 PM
Hi,
I've written code to save an image to a TIFF or BMP file for faxing.
The code works properly on my Windows XP development machine, but when
I deployed on a Windows 2000 Server machine, the program saves a black
image.
I've noticed that the saved image displays properly on Windows XP's
... more >>
How to rotate a Bitmap
Posted by Amuro at 9/22/2003 2:32:56 PM
I have a bitmap object that would like it to display on a winform rotated...
I just know how to use graphicpath/matrix to do transformation..
but the graphicpath class don't have AddImage....
pls help
thx
... more >>
shifting a color
Posted by Mark Bosley at 9/22/2003 9:13:45 AM
I have an instance of a System.Color and need to blend this white(shift to a
lighter color). how can i approach this?
... more >>
About Crystal report
Posted by Jayant Wagh at 9/21/2003 8:11:07 PM
Hi,
I am using VB.NET and Crystal report 9 Can anybody know how to use dotmatrix
printer in text mode.
Thanks
Jayant.
... more >>
the future of Windows.Forms
Posted by codymanix at 9/20/2003 8:56:51 PM
will there be a new library of windows controls for .net in the near future
like swing came after awt in java?
most of the current controls for .net are unacceptable slow and hard or
impossible to customize or localize.
--
cody
[Freeware, Games and Humor]
www.deutronium.de.vu || www.deu... more >>
Transforming an image's color space
Posted by netnews.comcast.net at 9/20/2003 3:46:50 PM
Hey guys,
I'm working on an image transformation project. It takes a Canon raw file
(.CRW) file and converts it in to either a JPG or a Photoshop file. The
Photoshop file is working pretty well, and since Photoshop can convert the
file in to the correct color space, it's not the issue.
Howe... more >>
Animated GIF / Multipage Tiff
Posted by John J. Hughes II at 9/20/2003 2:47:31 PM
Hello all,
I am trying to create a Animated GIF file using the .NET framework (C#).
This has been mostly a failure but I have determined how to create a
Multipage Tiff thanks to the help of another news group (Examples did not
work). So two questions:
1) Is there a way to create a Animated... more >>
having Resize issues.
Posted by Ryan Knopp at 9/19/2003 8:42:41 PM
I'm trying to resize a jpg file. What I get as a result is a pure black
image. Not sure what i'm doing wrong. Here's a snippet of my code.
int height = 330;
int width;
Bitmap bm = new Bitmap(BigImagePath);
width = (height * bm.Width) / bm.Height;
Bitmap resize = new Bitmap(width, hei... more >>
size of an image w/o loading it
Posted by thomas kern at 9/19/2003 4:07:48 PM
Hello
how can i obtain the size (width, height) of an image w/o
loading the image?
reason: i dont want to load 2MB just to get the width.
takes too much time to load it
thanks in advance
Thomas Kern
... more >>
Converting DIB to System::Bitmap
Posted by Me at 9/19/2003 2:19:22 PM
Hi,
Here is what i want to do,
I recieve a DIB handle (32 bit int) from a Twain wrapper class and i want to
convert that to a System::Bitmap so i can display it into a
Windows::Forms::PictureBox
I looked around on the ineternet a bit but didn't find anyting verry usefull
Does somebody ha... more >>
Enlarging a JPG/GIF with anti-aliasing..
Posted by Amuro at 9/19/2003 12:08:22 PM
Can I do it just like SVG?
thx...
... more >>
Drawing in ASP.NET
Posted by Santastp at 9/18/2003 4:09:34 PM
Hi!
I saw that with GDI+ we can draw image in web page
but only through Response.OutputStream.
But for some reason, I need to draw at a precise position in the page.
And the page contains html!
Is it possible?
Thanks,
Stephane
... more >>
Drawing over child controls - doesn't work for me
Posted by Ian at 9/18/2003 4:06:01 AM
Hello,
I am feeling dumb that I can't figure this out. I have
searched the www and newsgroups for answers but only one
small, vaguely similar, thing popped up.
C# - I have developed a couple of user controls; one that
wraps up a linear gradient colour, and written another
similar one ... more >>
Printing problem
Posted by pvavoulas NO[at]SPAM eurobank.gr at 9/18/2003 2:14:34 AM
Hi,
using the PrintDocument class for the first time, I came upon the
following problem :
On the PrintPage event, I cannot get information about the number of
the printed characters, in order to set the "HasMorePages = true".
Thanks.
nordic... more >>
Printing shifts letters
Posted by news.microsoft.com at 9/17/2003 10:38:20 PM
Since I've noticed this behavior on several computers, with several
different OS's (98, 2K, XP) and on several different printers, I'm amazed I
can't find a reference on the net anywhere:
When I print text from .NET (1.0 as well as 1.1), on some occasions, the
characters seem to be shifted: A is... more >>
Bug in System.Drawing? GdipDeleteFontFamily
Posted by Ervin at 9/17/2003 1:31:28 PM
Hi All,
Here's a wierd one...
I posted a message a couple of days ago titled "Urgent! GDI+ Memory
consumption", it was about my little app hogging alot of memory, and
eventually hanging. I though memory consumption was the problem, but I've
now come to find the following exception while st... more >>
paint sometime on another graphic without losing the other grapic... how?
Posted by Jeroen Ceuppens at 9/17/2003 11:33:59 AM
When I paint a image, the image disappear when a use a selectiontracker on
it, is it possible that the image stays visible when i use the
selectiontracker?
I found a stupid solution, it isn't good because it always repaint the same
image and it flickers during the use of a selectiontracker...... more >>
Shift color brightness
Posted by Adam G. at 9/17/2003 7:32:11 AM
Hi -- I want to shift the brightness of a known system color. I know how to
extract the RGB values and the HSB value of the color, but is there a method
for changing one of the HSB values? Thanks in advance.
Adam G.
... more >>
8 Bit png + Alpha channel == 32ARGB ?
Posted by Kapil Raikar at 9/17/2003 3:03:54 AM
Hi,
I set alpha channel to an 8 bit png image using an image
processing tool ( Macromedia Fireworks )
Now this image is shown as having
a.) 8 bit depth in Windows 2000 Explorer
b.) 32 bit depth in Windows XP Explorer
c.) .Net framework Bitmap class show the image PixelFormat
as Form... more >>
screen capture
Posted by Logan Mckinley at 9/17/2003 12:32:24 AM
I have a form that follows the mouse when it moves, i want to set the
background of this form to the desktop underneith it (essentially making
invisible). I am using the following code but it appears that the something
is off because the image it generates is not what is under the form.
Another... more >>
|