all groups > dotnet drawing api > march 2008
Converting 8 bit indexed to 24bit
Posted by Linus at 3/31/2008 7:14:49 AM
Hi,
Trying to convert 8bit indexed to 24bit I came across this:
The code below will NOT convert the indexed8 image to a 24bit image24,
(look below the code snipet)
Dim image As Bitmap
Dim image24 As Bitmap
Try
image = New Bitmap(filename)
... more >>
Color problems when converting indexed8 to 24 bit
Posted by Linus at 3/31/2008 3:06:52 AM
Hi,
I'm having a problem converting an indexed8 tiff image to a 24bit
image. When I convert it with DrawImage or for example
DrawImageUnscaledAndClipped it drops the RGB with one. For example
(255,255,255) would become (254,254,254). I've tried the victor image
processing library demo version... more >>
draw a line from 0 to 52 does the last pixel of the line show?
Posted by AAaron123 at 3/26/2008 12:21:20 PM
If I have a panel with a client sizes of 52x52 and I draw a line from 0 to
52 does the last pixel of the line show?
Thanks in advance
... more >>
Drawing/Render Splitters like in Outlook 2007
Posted by Stefan Uhlemann at 3/19/2008 11:21:38 PM
Hi,
how can i realize splitters like in Outlook 2007? (Inverted Colors of its
background)
I tried to draw directly to screen Screen hDC with BitBlt or
Graphics.DrawImage and inverting its colors.
It works - but flickers and is very hard to handle (mouse positions, much
code etc.)
There m... more >>
How to get an 8 bit non-indexed image?
Posted by Norbert_Pürringer at 3/18/2008 1:49:30 AM
Hello,
I need to convert an 8 bit indexed image into an 8 bit non-indexed
image.
This way would produce an non-indexed 32 bit image:
Bitmap nonindexedBitmap = new Bitmap(bitmap.Width, bitmap.Height,
PixelFormat.Format32bppRgb);
But I'm not able to find PixelFormat.Format8bppRgb. Why?
... more >>
Graphics.Drawimage . The pixels are blurred
Posted by Suresh Gladstone at 3/17/2008 10:42:00 PM
Hi,
Iam Facing some problem in the gradient of pixels while invoking DrawIamge
of System.Graphics. My objective is to position a set of pixels in a bitmap
and enlarge it based on the dimension specified for the container.I choose
DrawImage method of Graphics object which Draws the specified... more >>
How to tooltip and hyperlink a shape?
Posted by gnewsgroup at 3/14/2008 7:22:55 AM
Quite many charting tools (such as dundas) create charts whose
components can display a tooltip when the cursor them. And the
components can also be hyperlinked.
If I am not make it clear, the following picture shows what I am
talking about.
http://farm3.static.flickr.com/2326/2333252986_1... more >>
COLOR 24BIT JPEG to BLACK/WHITE 1bit PNG
Posted by Kristijan Marin at 3/12/2008 12:14:16 PM
Hello,
Can anyone please tell me how can I save Jpeg that is color 24bit into
Black/White 1bit PNG ?
I saw it is possible with PhotoELF .....
I tried with :
EncoderParameters encoderParams = new EncoderParameters();
encoderParams.Param[0] =
new EncoderParameter(
System.Drawing.Ima... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
System.Windows.Media.Color
Posted by Christopher Ireland at 3/10/2008 6:31:10 PM
Hello!
Thanks to microsoft.public.dotnet.languages.csharp, I now know that the
structure System.Windows.Media.Color cannot be serialized.
Before I start on a lengthy process to serialize this structure by hand
(lengthy because of the number of properties I have of this type the code I
wo... more >>
Render user control in an image
Posted by mash at 3/10/2008 11:31:01 AM
I have a user control which renders some text and also has a child control
that renders an image and other graphics. Is there a way I could get my user
control to draw to an Image. What I want to do is have my User Control added
to a Word document as part of a test report.
So I'd like to have... more >>
GDI+ line drawing bug
Posted by Mad-Hollander at 3/10/2008 6:20:00 AM
The following code produces two lines instead one :-)
In my working project the difference about half of screen.
private void OnCanvasPaint(object sender, PaintEventArgs e)
{
Pen pen = new Pen(Color.Black, (float)1.0);
using (pen)
{
pen.DashStyl... more >>
elevation coloured grid
Posted by aiolosply at 3/8/2008 8:53:28 PM
Hi all,
I am trying to create a program that reads two files (one temperature(csv),
one for elevation(ascii)) and displays the temperature values and locations.
Additionally it should display the gridded elevation data as a colour coded
raster over the original grid extent.
At the moment, I... more >>
String drawing gives me headache... advise very welcome
Posted by Fre at 3/6/2008 5:10:11 AM
Hi all,
I'm working on this for some time now, but it keeps giving me
headaches. I'm drawing strings in a label and in a
DataGridViewTextBoxCell. Why? Subparts of the string need other
colors. It's working, but not as should be. I'm not able to fully
understand how drawing works with TextForm... more >>
|