Groups | Blog | Home
all groups > dotnet drawing api > september 2007 >

dotnet drawing api : max Bitmap size ?



pamela fluente
9/5/2007 5:43:12 PM

Hello

does anybody know what are the exact maximum values
accepted for the Width / Height of a bitmap in a command such as:

New Bitmap(Width, Height),
System.Drawing.Imaging.PixelFormat.Format32bppPArgb)

I have seen some exception for large parameters. What are the max
accepted values without exception ?

-P
Bob Powell [MVP]
9/8/2007 12:24:40 AM
There are no exact values. This is all dependent on the amount of memoryand
paged memory you have available.

--
--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.


[quoted text, click to view]
pamela fluente
9/8/2007 3:44:12 AM
On 8 Set, 00:24, "Bob Powell [MVP]" <b...@spamkillerbobpowell.net>
[quoted text, click to view]

Thanks Bob, ... so I will use a try catch...

-P
AddThis Social Bookmark Button