Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!


Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
May 2008
June 2008
all groups > dotnet drawing api > november 2007

What site contains the OctreeQuantizer code you'd recommend
Posted by Academia at 11/30/2007 8:54:08 PM
Once I saw an implementation of OctreeQuantizer that did not require the Unsafe keyword. Now that I want it I can't find it. Do you know how to find that site? Also do you have a comment about reasons for using the "safe" or the "unsafe" OctreeQuantizer code. What site contains t...more >>


Printing cause application thread exiting
Posted by pascal.fluck@gmail.com at 11/29/2007 8:25:21 AM
Hi all, I have a strange problem: When my application print something with System.Drawing.Printing.PrintDocument(), my application thread (MessageLoop) is going down. I know that because I putted an event on Application.ThreadExit and this event is launched when printing. What is also str...more >>

Color Equality
Posted by Nathan Sokalski at 11/24/2007 5:32:24 PM
Is there a way to check whether two Colors are equal? If the Colors have different Name properties, the = operator will return false even if the A,R,G, and B properties are equal. I would like to be able to check whether two colors are equal based only on the properties that determine what col...more >>

Editing an indexed PixelFormat
Posted by Nathan Sokalski at 11/24/2007 12:15:22 AM
I have created declared a Bitmap using the following statement: Dim bmp As New Bitmap(100, 100, PixelFormat.Format8bppIndexed) Because the SetPixel() method is disabled and a Graphics object cannot be created for indexed PixelFormats, I am not sure how to edit the Bitmap. I am assuming tha...more >>

extract image size without reading whole file
Posted by SharpCoderMP at 11/23/2007 5:14:54 PM
hi, i need to know the size of an image without reading the whole file. any ideas where to start? i assume some p/invoke would be needed :/ i need this because loading whole images into memory takes lots of time. and when you have lets say 300 of them, 6Mpix each it may take ages....more >>

Add metadata to TIFF file
Posted by Ben van Erp at 11/22/2007 10:58:01 PM
I used C# to create some bitmaps and save them as a TIFF file. Now i want to add metadata to the TIFF file. How can i do this? Thanks, Ben...more >>

Passing a ColorPalette as an argument
Posted by Nathan Sokalski at 11/22/2007 10:10:37 PM
I have finally figured out how to create transparency in GIF files when creating them with VB.NET (it is harder than I think it should be, but at least I can do it now). I would like to write a couple functions and/or subroutines to make this easier. However, when I pass a Bitmap as a parame...more >>

Graphics.DrawLines
Posted by RedLars at 11/22/2007 7:23:00 AM
Originally posted this question http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2444877&SiteID=1 but realized it was the wrong forum. These two examples might be bugs, missing documentation or me being silly. This code bit generates an OverflowException. Graphics g = this.CreateGr...more >>



Problem with "IntersectsWith" function in GDI+
Posted by Ranjit at 11/21/2007 8:02:01 AM
Hi All, I am working on .Net Framework 2.0 (Graphics module). I am facing a strange problem w.r.t IntersectsWith function which is used to determine whether two given rectangles intersect with each other (or) not. I have two cases where the rectangles in both the cases touch...more >>

Combine a bitmap with a mask bitmap
Posted by Carlos Alloatti at 11/21/2007 12:42:59 AM
I need to combine two 24bpp bitmaps. The mask bitmap only has two values for its pixels: black or white. The combined resulting bitmap should be: BITMAP1: COLOR X + BITMAP2: BLACK = COLOR X BITMAP1: COLOR X + BITMAP2: WHITE = WHITE How could I do this? Carlos Alloatti...more >>

JPEG image appearing low quality when copied
Posted by Nathan Sokalski at 11/20/2007 10:48:29 AM
I have created an ASP.NET Page to display images in a specified size and/or display a blank image if no image exists. Here is my code: <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="imgresizer.aspx.vb" Inherits="ECommerce.imgresizer" %> Imports System.Drawing Imports System....more >>

SortArrow visual style problem
Posted by ARM at 11/20/2007 3:18:02 AM
I`m trying to draw column header`s sort arrow visual style using VisualRenderer but I always geting exception 'Given combination of Class, Part, and State is not defined by the current visual style'. That`s my code: VisualRenderer = new VisualStyleRenderer(VisualStyleElement.Header.SortArr...more >>

Colormatrix to create mask
Posted by Carlos Alloatti at 11/16/2007 1:11:44 PM
I need a colormatrix that will change every non white pixel in an image to black, and leave all white pixels white. Any ideas? Carlos Aloatti...more >>

Out of memory ONLY on customer's computer
Posted by Kristijan Marin at 11/15/2007 10:45:02 AM
Hi, I have a big problem .... that only occures on my customer computers .... There is no pattern when the error will popup .... it can after 30 seconds or after minuter or more ..... the thing is that even if the user doesn't do anything , he/she goes on a break or something the error pop...more >>

TIFF image not displaying correctly
Posted by Kyle M. Burns at 11/14/2007 8:39:01 AM
I'm using the System.Drawing.Imaging namespace to create multi-page TIFFs. Some of the frames are pulled from existing JPEG files and some are dynamically created by my application using the following process: 1) Create a new bitmap, specifying size 2) Obtain the graphics object for the bit...more >>

How do you print an bmp image on a report?
Posted by DK at 11/9/2007 9:19:32 AM
Currently the code looks like this (it doesn't work) Private m_BmpStream As Stream Private m_Assembly As System.Reflection.Assembly = _ Reflection.Assembly.GetEntryAssembly() m_BmpStream = _ m_Assembly.GetManifestResourceStream("LOGO.bmp") ...more >>

Size on string with inline formatting
Posted by sparkesy at 11/6/2007 10:41:03 AM
Hi all, MeasureString takes only a string as an argument with specified formatting etc. Is it possible (or is anyone aware of any utils) that enable you to measure the size of strings with inline formatting. ie "this is normal. <b>this is bold</b>. this is normal." ...........is di...more >>

Animation question
Posted by Jeff Johnson at 11/5/2007 5:14:45 PM
I'm looking to create a scoreboard program for a friendly single-elimination competition. As people are eliminated, I want to display a little animation where something comes on-screen and, say, blows up the losing scores (or kicks them away, or sprays them with acid, etc., something that says...more >>

Image.Save() throws GDI+ exception
Posted by SharpCoderMP at 11/4/2007 11:08:45 PM
scenario (i call it wise image save): PART 1 1. open bitmap from file 2. check if image uses alpha transparency - that is literally iterate through each pixel and check if there is any pixel with alpha value other than 255 3a. if image has transparent pixels save to stream as PNG 3b. if image...more >>

I change the ListBox's item but the display does not change
Posted by Academia at 11/2/2007 9:20:12 AM
I have a listbox populated with Objects. The Class has a String field that ToString returns. I assume that is what the Listbox uses for its display. Correct? If I change the value of the object's string field the Listbox display does not change. Would you expect it to change? The Debug...more >>


DevelopmentNow Blog