all groups > dotnet drawing api > october 2006 > threads for october 8 - 14, 2006
Filter by week: 1 2 3 4 5
How to deal with fully transparent ARGB pixels?
Posted by Carles at 10/13/2006 1:56:04 PM
Hello,
Supposed a 3x3 ARGB (not-premultiplied RGB) bitmap where:
- Center pixel is defined as hFFFFFFFF (pure white and full opaque)
- Eight surrounding pixels are defined as h00FF0000 (pure red and full
transparent)
Now supposed we resize image to a 5x5 bitmap. A simple interpolation me... more >>
How do I draw non-antialiased, pixel-perfect rounded rectangles?
Posted by Joergen Bech NO[at]SPAM at 10/13/2006 12:00:00 AM
I need to draw rounded rectangles on the screen as well as on a
printer device. Ideally both filled and unfilled.
I have seen multiple examples on the Internet using paths/arcs,
but they all seem to produce asymmetric for some - if not all - corner
diameters. Some examples gloss over this pr... more >>
2d Tile Maps and Sprites
Posted by AMDIRT at 10/12/2006 11:39:01 AM
Hello Everyone,
I am hoping that you can point me into the correct direction.
I am playing around with a 2d tile map and am wondering how to display and
be aware of items.
Example 1: my tiles are 32X32 while I have a tree that is 128X96. When I
place the tree at coords 4,3 or 4 tiles ... more >>
C#/.NET code for graphics similar to Paintbrush?
Posted by Loren Rogers at 10/12/2006 9:56:25 AM
Hello,
I'm sure something like this may have already been asked, and I'm going
to do a search. But I'm looking for some code snippets or code base of
how to paint different objects like scribbles, or text or a picture on
a window and then be able to select that individual object to move it
... more >>
Scrolls and Painting Refresh
Posted by KillerCode at 10/12/2006 3:51:40 AM
Greetings to you all
I've been desperated because I can solve this...
Please someone give a hint
Here is the problem...
I have a form with a datagrid and above the datagrid I'm doing some
painting on the OnPaint event of the Form.
When I scroll the grid left or right they should both... more >>
Fading at bottom of images on resize?
Posted by Chris Ashley at 10/12/2006 1:45:17 AM
I am splitting up a large image into strips and then resizing the
individual pieces using the following code:
Bitmap bmOutput = new Bitmap(intDestWidth, intDestHeight);
bmOutput.SetResolution(bmpToSize.HorizontalResolution,
bmpToSize.VerticalResolution);
Gra... more >>
GDI or GCI+
Posted by dave at 10/11/2006 4:30:01 PM
Hello:
I have UI that have two panels on which
complex images being redrawn every sec.
It works OK but sometime there is slight, vey small flickering
I wrote it using GDI+.
I've heard that most card don't support GCI+.
Bob Powell mention that "Matrox" and "AFAIK" the only one to s... more >>
AutoScrollPosition not updating scroll position
Posted by illegal.prime NO[at]SPAM gmail.com at 10/11/2006 3:07:22 PM
So I have a working application that has two panels - Panel A and B.
Panel A sends scroll updates to B. Then I added a third Panel to my
application that sits atop these two panels (call it Panel C). If I
make Panel C visible by increasing its height - then my
AutoScrollPosition updates to Pan... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
how to get coordinates of image in picutre control
Posted by Pannu at 10/11/2006 10:14:43 AM
I have a picturebox on my VB.NET form. The picturebox size mode is set to
stretched. I then load an image into that form and display it. As the user
moves the mouse over the form, I want to get and display (in the status bar)
the image coordinates of the mouse location. However, if I use the
p... more >>
MemoryStream and ImageFormat.Png problem?
Posted by OPL at 10/11/2006 12:00:00 AM
I'm having a problem trying to read a bitmapped file into a memory stream
and then into a byte array.
Here's an example as to what I'm doing:
Bitmap bmp = new Bitmap(@"c:\windows\Soap Bubbles.bmp");
MemoryStream mem = new MemoryStream();
bmp.Save(mem, ImageFormat.Png);
byte[] imageArray =... more >>
Drawing Charts with GDI+
Posted by ThunderMusic at 10/10/2006 11:01:30 AM
Hi,
I have a question... I'm trying to learn how to draw charts using GDI+,
especially pie charts, but would do bar charts afterward... I know there are
a lot of third party libraries out there, but I want to learn how it's done.
For 2D, there's no problem about it... my problem comes with... more >>
|