Contents

Posts in microsoft.public.dotnet.framework.drawing

 

Drawing::Image::FromHbitmap()  Replies (1) 8 January 2008
Hi, I want create a Bitmap class from a DIB handle, but then I call the function Drawing::Image::FromHbitmap( hImage ) in this way : HANDLE hImage; IntPtr pImage; System::Drawing::Bitmap *...

 

SetActiveFrame() on tif throwing exception (whole ...  Replies (1) 7 January 2008
Hi, 1.5 days of trying to solve this and I can't.... I now ask the pros for help :0) I'm working on an image viewing module for our office application. We will need to display multi pages t...

 

Use new font without reboot  Replies (1) 7 January 2008
I have an ASP.Net application which creates images containing text and streams them back to the user's browser, using a range of different fonts that are installed on the server. This is achieved...

 

SetTextCharacterExtra in .NET?  Replies (1) 6 January 2008
GDI lets you set the intercharacter spacing within a string. Is there an equivalent hidden away somewhere in .NET's Graphics class? I can't seem to find anything that does the trick....

 

Any way to set PNG compression level?  Replies (1) 4 January 2008
Hi, using Image.Save(filename, ImageFormat.Png) gives me a working PNG file, but it seems bigger than it needs to be. Is there a way to configure the compression level? I looked into EncoderParame...

 

M I`5,Persecution ' harassmen t at work  Replies (1) 2 January 2008
-=-=-=-=-=-=-=-=-=-=-=-= -=. harassment at work -= -=-=-=-=-=-=-=-=-=-=-=-= Once I stopped. watching television and listening to the radio at the end of 1990, "they" had to find other ways of. c...

 

M`I'5-Persec ution - their met hods and tactic s  Replies (1) 2 January 2008
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -= MI5: methods. and tactics -= -=-=-=-=-=-=-=-=-=-=-=-=-=-=-= They deliberately set out to harass in a way. that would resemble the symptoms of schizophrenia, so ...

 

M.I'5.Perse cution - w hy the se curity se rvices ...  Replies (1) 2 January 2008
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -= why. the security services? -= -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= You may ask, why do I think the "they" referred. to are the security services? Is there any ev...

 

M'I.5'Pers ecution ' t he BB C, telev ision and r ...  Replies (1) 1 January 2008
-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-= -= the BBC, television. and radio -= -=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-= The first incident in. June 1990 was when a BBC newsreader made what seemed to be. a ...

 

M.I,5`Pers ecution . C apital Radio - Chris Tarr ...  Replies (1) 1 January 2008
-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-= -= Capital. Radio - Chris Tarrant -= -=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-= Capital. Radio DJs have been "in on it" from the start. One of the first things I hea...

 

M`I'5`Per secution ` how and wh y d id it st art ...  Replies (1) 1 January 2008
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -= how and why did. it start? -= -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- The harassment didn't start by itself, so someone must have been there. at the outset. to give it...

 

M,I.5'Persecu tion purpos e in pub licizing i t; ...  Replies (1) 1 January 2008
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -= purpose in publicizing it; censorship. in uk.* newsgroups -= -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= The p...

 

M`I,5`Persecutio n ` my respon se to the harassme ...  Replies (1) 1 January 2008
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -= my response. to the harassment -= -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- My first reaction in 1990/91 was to assume that if I broke. contact then they would n...

 

M,I.5,Persec ution , who knows about it?  Replies (1) 1 January 2008
-=-=-=-=-=-=-=-=-=-=-=-=- -= who knows about. it? =- -=-=-=-=-=-=-=-=-=-=-=-=- Many people know, both in the establishment and media, and. among the general public. Despite. an absence of its ta...

 

Graphics.MeasureString() is messing up my Image  Replies (1) 1 January 2008
I have written an ASP.NET Page that generates and returns an image/gif graphic using the ContentType property of the Page. To determine the width of the Bitmap, I use the MeasureString() method of...

 

Understanding GDI+ Transfomations (or not)  Replies (3) 1 January 2008
I am having trouble, I think, dealing with GDI+ transformations. I have read all that I can find on the subject, (including Bob Powell's excellent FAQ and primer), but I appear to be missing some...

 

M,I-5'Persecuti on , M I5 are Afrai d to A dmit T ...  Replies (1) 31 December 2007
MI5 are Afraid. to Admit They're Behind the Persecution MI5 have issued a formal denial of any involvement in. my life to the Security. Service Tribunal, as you might expect them to; but, more im...

 

Scale Transform - Why do I need to account for ver ...  Replies (5) 31 December 2007
My code calculates the size required to maintain the aspect ratio of an image when displaying it. I use a scale transformation to scale the image to the proper size. For some reason my scaling is al...

 

Graphics.MeasureString() is messing up my image  Replies (1) 29 December 2007
This is a multi-part message in MIME format. ------=_NextPart_000_000C_01C84A75.DADA5570 Content-Type: multipart/alternative; boundary="----=_NextPart_001_000D_01C84A75.DADA5570" ------=_Ne...

 

Application icon from hWnd?  Replies (6) 26 December 2007
Is it possible to get a bitmap icon from a window's hWnd value suitable for populating an ImageList control? I have working a small application that lists the running, user applications in a listvie...

 

memory device context and DIB  Replies (7) 19 December 2007
Hi, I am porting some code over from a C++ application that uses OpenGL. I need to save the current scene to an image file. The steps are quite simple: create a memory device context, select a DI...

 

ListView Like Skype friends list  Replies (1) 19 December 2007
Hi guys, I am looking for a sample listview control that looks like skype's friends list. any help would be highly appreciated. -Aruna...

 

Graphics.MeasureString? or Graphics.DrawString?  Replies (6) 17 December 2007
In Windows XP, the following code figures out where to position a string and draws the string. In Vista, the following code figures out where to position all except the last character of the stri...

 

Michael Lalonde  Replies (1) 17 December 2007
uwytmuk The message is a test post. It did not originate from AOL. If it appears in a non-test group, I apologize. I am testing my NNTP setting. mike lalonde michael lalonde sudbury onta...

 

Convert Color Bitmap To B/W  Replies (2) 16 December 2007
Hi every one, I am trying to convert Color jpg into 1 bit pixel b/w gif. For that i used some examples i found in the internet: Bob Pawell or www.wischik.com and others. all of them use the bitma...

 

MI5-Persecution: Why do you think MI5 are responsi ...  Replies (1) 16 December 2007
Why do you think MI5 are responsible? The question of who is ultimately responsible for this eight-year harassment is one which is very difficult to answer, as the persecutors have never clearly ...

 

MI5-Persecution: MI5 are Afraid to Admit Theyre Be ...  Replies (1) 16 December 2007
MI5 are Afraid to Admit They're Behind the Persecution MI5 have issued a formal denial of any involvement in my life to the Security Service Tribunal, as you might expect them to; but, more impor...

 

How to save a multi TIFF?  Replies (2) 14 December 2007
This is a multi-part message in MIME format. ------=_NextPart_000_0023_01C83E50.21BEB030 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-...

 

stalker cd record label  Replies (1) 14 December 2007
Michael Lalonde went swimming with James Armstrong on a passenger jet and fell into the eternal pit of hell for no reason at all and banged his head on a wall which caused an avalanche, he grabbed t...

 

Scale Image w/o creating a 24 bit image object  Replies (2) 11 December 2007
Hi, I have a large (1000px x 20000px) Image object that I am trying to scale down. It is in the 8bppIndexed format. I am currently creating a new 24 bit Image object and using the DrawImage me...

 

¤â¾÷²M³f¦U´Ú¦U«¬¸¹  Replies (1) 11 December 2007
¹q62893103°Ý»ù©ÎµoªÅ¥Õ¹q¶l¥h 3d@humaneyes.com »ù³æ....

 

Image artifacts after asp.net gdi+ resize  Replies (2) 10 December 2007
I'm experiencing some issues with uploading & resizing images on my website. I'm taking images that are uploaded to my page and upscaling them to 300dpi if they are below that resolution and adjusti...

 

Animated GIF colour depth  Replies (1) 8 December 2007
I'm having a problem using C# to load image files. I'm writing an application to do some palette processing with palettized (ie. 8-bit) image files. With most files it works fine, and with standard ...

 

Icon.FromHandle + ImageList = decreased color dept ...  Replies (3) 1 December 2007
Hello, I'm writing Visual Studio add-in in C# (VS 2008, WinXP SP2). I need to display a list of files in ListView control. In order to get the file type's associated icon I use `SHGetFileInfo...

 

What site contains the OctreeQuantizer code you'd ...  Replies (1) 30 November 2007
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 ab...

 

Printing cause application thread exiting  Replies (1) 29 November 2007
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 putt...

 

Editing an indexed PixelFormat  Replies (1) 24 November 2007
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 can...

 

Color Equality  Replies (3) 24 November 2007
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 ...

 

extract image size without reading whole file  Replies (5) 23 November 2007
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 take...

 

Graphics.DrawLines  Replies (3) 22 November 2007
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 documentat...

 

Passing a ColorPalette as an argument  Replies (1) 22 November 2007
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 co...

 

Add metadata to TIFF file  Replies (2) 22 November 2007
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...

 

Combine a bitmap with a mask bitmap  Replies (6) 21 November 2007
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 BITM...

 

Problem with "IntersectsWith" function in GDI+  Replies (3) 21 November 2007
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 wit...

 

SortArrow visual style problem  Replies (1) 20 November 2007
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 styl...

 

JPEG image appearing low quality when copied  Replies (2) 20 November 2007
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: Imports System.Drawing Imports System.Drawing.Imaging...

 

Colormatrix to create mask  Replies (6) 16 November 2007
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...

 

Out of memory ONLY on customer's computer  Replies (2) 15 November 2007
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 thin...

 

TIFF image not displaying correctly  Replies (1) 14 November 2007
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 foll...

 

Drawing tables  Replies (1) 12 November 2007
Hi, I was working on a report over the weekend and needed to draw a table with text in the cells. I managed to get it done, but the code is ugly and I'm not happy about how fragile it is. I...