all groups > dotnet drawing api > may 2006 > threads for may 8 - 14, 2006
Filter by week: 1 2 3 4 5
BufferedGraphics and translations
Posted by Marcin Rzeznicki at 5/14/2006 3:06:55 PM
Hello,
I am experiencing lot of problem with BufferedGraphics rendering. In on
paint of my control I do:
float xOffset = ComputeXOffsetSomehow();
float yOffset = ComputeYOffsetSomehow();
BufferedGraphicsContext doubleBufferContext =
BufferedGraphicsManager.Current;
BufferedGraphics backBu... more >>
convert BMP to specific format
Posted by Nikolay Evseev at 5/12/2006 7:54:02 AM
Hello,
I need to convert a monochrome BMP according to the format specified below.
This needs to be done in compact framework 2.0.
The format needed:
To represent the 16x16 square box, the data (shown in boldface) is as
follows. bytes bits
HEX BINARY
FF FF 1111111111111111
80 01... more >>
Capture and restore a rectangle of pixels FASTEST way
Posted by sandrapacino NO[at]SPAM libero.it at 5/11/2006 3:40:01 PM
I have a BITMAP, say it's w=200 x h=100 pixels.
I have a rectangle *which has a border* of 3 pixels. (It is not
necessarily all contained in the bitmap. Let say the rectangle is x=
-1, y=50, w=100, h=100 (with a border=3)
I want :
1. to store in memory all the pixels that are covered by the... more >>
ZoomPicBox: Moving scrollbars in a Zoomed Image
Posted by blackForest1000 NO[at]SPAM hotmail.com at 5/11/2006 8:26:01 AM
I have implemented a custom PictureBox as Bob Powell instructs (thanks
for your code!) using a Matrix transformation in the OnPaint method.
Im trying to scroll the image dragging it with the mouse. The mousemove
event =ECs captured moving the scrollsbar accordingly. This works ok in
a non-zoom... more >>
VisualStyleRenderer won't work, crashes control... any bug fix?
Posted by Xafier at 5/11/2006 1:25:23 AM
Hi
I'm working on making a TreeView and re-doing the painting myself, but
I'm having a problem with this code:
private VisualStyleRenderer glyphOpen = new
VisualStyleRenderer(VisualStyleElement.TreeView.Glyph.Opened);
and any code similar... for some reason whenever those lines are
decla... more >>
Picture box with signature needed to be transparent, to view Photo of another picture box
Posted by Juna at 5/10/2006 9:58:47 PM
Hello Bob powell,
I have seen you solving problem of many peoples, so i hope you
can also solve my problem.
Well I am trying to Make a program to print the ID cards.In the window
form i have two picture box, one is for the photo of the students and
one to hold the signature of the Prin... more >>
Control for drawing
Posted by dave at 5/10/2006 2:53:01 PM
Hello:
Does somebody know what the best control for drawing on ?
Thank you,
dave
... more >>
GraphicsPath.Transform to rotate around one of its points
Posted by sod0783 at 5/10/2006 2:52:01 PM
I'm taking a rectangle and using a Matix and GraphicsPath to draw it rotated
about its upper left corner. The problem is GraphicsPath.Transform changes
the upper left point in the path slightly, so that it is no longer the same
as m_rectanglef.Location. This is especially a problem when
m_... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Re: Graphics.PageUnit problem... (spelling checked.. ;-(
Posted by Lloyd Dupont at 5/10/2006 2:19:32 PM
I have to do some WYSIWIG rendering.
Because I need to know exactly where is what and have to have the same
output on both the screen and the printer I decided to change my Page unit
to Inches.
As I was testing my first thought was to draw red outline of some relevant
rectangle.
And here ... more >>
Graphics.PageUnit problem...
Posted by Lloyd Dupont at 5/10/2006 2:00:05 PM
I have to do some WYSIWIG rendering.
Bacause I need exactly where is what and have the same output on the printer
I decided to change my Page unit to Inch.
As I was testing my first though was to draw read outline of some relevant
rectangle.
And here I had my 1st encouter with those infamou... more >>
text in outputstream
Posted by John Hopper at 5/10/2006 1:11:02 PM
Hello,
If I
Response.Write("hello")
before I
image2.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Gif)
then I see miscellaneous characters where the image should be.
When I reverse the order of the statements above then I don't see the text
at all.
Is there... more >>
Change ColorPalette
Posted by César Chalom at 5/10/2006 2:10:44 AM
Hello,
Is it possible to change the colorpalette of a GIF image without using
Lockbits ?
I'm doing the following :
1 - load any bitmap
2 - save as GIF (MS GDI+ saves using its default half tone palette)
3 - load this just created image
4 - retrieve the colorpalette
5 - change an entry... more >>
Problem with Bitmap::Save
Posted by imwwz NO[at]SPAM 163.com at 5/9/2006 11:24:20 PM
I have a problem when using Gdiplus Bitmap::Save: I can't save the
bitmap back to the file from which the Bitmap object is constructed.
I learned from Bob Powell's Gdi+ Faq that there is a solution in C# to
this problem, but right now I'm programming with VC++, and I don't want
to program with m... more >>
Do I need to reinvent wheel ?
Posted by dave at 5/9/2006 10:35:01 PM
Hello:
I have application that displays graph as line.
Data that feeds this graph is updated every 1 Sec.
Q1: What the best way to accomplish this task ?
Q2: The same questions when graph is a sequence of rectangles?
I'm new to this subject but i beleive its old topic.
Does somebody... more >>
Multiframe Bitmap resolutions?!?!?
Posted by jorge.colaco NO[at]SPAM gmail.com at 5/9/2006 10:14:21 AM
Hi guys,
- I'm trying to load some jpeg's and 1 frame tiff's to bitmaps. Done!
I use the Bob Powell GDI+ method
(http://www.bobpowell.net/generating_multipage_tiffs.htm) and
everything seems ok, but, when look closely i found that all the pages
loaded from .jpg's files, doesn't respect the re... more >>
|