GDI+ - construct Bitmap from IStream
Mon, 14 Apr 2008 18:30:49 -0500
We'd like to append a thumbnail bitmap at the end of a custom file type so
it can be extracted by an XP, i.e. pre-Vista, thumbnail extractor shell
extension. One of the GDI+ Bitmap constructors initializes a bitmap from an
IStream, and I can get it to load the Bitmap correctly from an IStream
initialized on the ...
|
How to change character spacing ?
Sun, 13 Apr 2008 19:55:00 -0700
I'm developing some kind of application that need to draw some graphics and
text.
I need to change character width and spacing when draw texts.
The width of the characters can be changed with LOGFONT.lfWidth when
creating a font. But I cannot find any method that allow the spacing of the
characters.
We ...
|
how to know a printing job has finished? (print without spooler)
Sun, 13 Apr 2008 00:24:00 +0900
how to know a priting job has finished, if I do NOT use "spooler".
I have to wait until it finishes and then continue the next procedure.
--
SHINKYOKU <NearLoveR@gmail.com>
...
|
gdipcreateeffect
Fri, 11 Apr 2008 00:48:02 -0700
Hi ! I am trying to use gdi+ to create various effects, one of them is
brightnesscontrast effect. I can easily use the gdi+ functions to do it. But
I have a problem now: In the gdi+ function GdipCreateEffect, I need to enter:
const GUID guid, which is a guid of brightnesscontrast effect. I am using
Gdi+ AP ...
|
SetMapMode ignores or clears SetViewportOrgEx (or SetWindowOrgEx or SetWorldTransform)
Thu, 10 Apr 2008 09:24:33 -0500
I am creating a DC that could be an EMF for going to the screen or a Printer DC.
This DC is passed to code that renders to the DC and is totally out of my control, I also might be playing an EMF to it that has SetMapMode internally.
Depending on user selections I may need to offset the DC to add or subtract a ...
|
Serious GDI Multithreading bug while printing to metafiles
Thu, 10 Apr 2008 15:24:20 +0200
Customers of ours reported a bug in our software that causes metafiles
to be incorrect.
We now reduced the bug using the appended code, which is run by
multiple threads simultaneously. The code opens a printer DC, uses
that as reference DC for a new metafile DC, creates/selects a font,
draws a text, desel ...
|
StretchDIBits To Printer In Landscape
Tue, 8 Apr 2008 17:18:12 -0400
Hello:
I've run across a problem with the StretchDIBits function that seems to be
printer dependant:
Everything is fine in potrait mode. When I programmatically set the printer
to landscape mode, after which I get a blank document printed. Even though
the StretchDIBits call returns a value equal to the c ...
|
|
|
how to compress pathtypes
Sun, 6 Apr 2008 22:14:00 -0700
Hi friends,
I am using C#.net.. i drawing logical data items (like
graphics.drawpath and graphics.drawstring)in a bitmap... how do reduce the
pathtypes...
I have one element.. it have two ellipse and two arc and three line.. how to
draw the elements.. without effecting one to another.. how do f ...
|
How to change the state of menu items in context menu of Edit
control?
Sun, 6 Apr 2008 11:49:43 -0700 (PDT)
Hello,
I am developing a customized edit control in Win32 and have
subclassed the window procedure for the Edit control. I want to change
the state of menu items (such as Cut, Copy, Paste etc) in the context
menu of the Edit control. How can I get the handle of the Edit
control's context menu and the comm ...
|
LoadCursor with ani resources
Sun, 6 Apr 2008 10:57:00 -0700
Hi,
I have some problems with the Win32 LoadCursor() function when loading an
animated cursor resource.
If I load an ani cursor several times in a row (eg. 100 times) with
LoadCursor(hInstance,"AniResource"), where the AniResource is linked into the
exe file as a anicursor resource, the function gives er ...
|