Click here to Skip to main content
15,923,083 members
Home / Discussions / C#
   

C#

 
AnswerRe: Create a large image Pin
leppie5-Aug-08 4:04
leppie5-Aug-08 4:04 
GeneralRe: Create a large image Pin
bverp5-Aug-08 4:06
bverp5-Aug-08 4:06 
GeneralRe: Create a large image Pin
leppie5-Aug-08 4:07
leppie5-Aug-08 4:07 
QuestionRe: Create a large image Pin
Mark Salsbery5-Aug-08 6:37
Mark Salsbery5-Aug-08 6:37 
AnswerRe: Create a large image Pin
led mike5-Aug-08 6:56
led mike5-Aug-08 6:56 
GeneralRe: Create a large image Pin
Mark Salsbery5-Aug-08 7:00
Mark Salsbery5-Aug-08 7:00 
AnswerRe: Create a large image Pin
bverp5-Aug-08 8:12
bverp5-Aug-08 8:12 
GeneralRe: Create a large image Pin
Mark Salsbery5-Aug-08 9:01
Mark Salsbery5-Aug-08 9:01 
I tried the following code on Vista (2GB RAM) and it worked fine
(took some grinding to create and compress that big image though! Smile | :) )
int imagewidth = 16762;
int imageheight = 23258;
Bitmap bmp = new Bitmap((int)imagewidth, (int)imageheight, PixelFormat.Format24bppRgb);
bmp.SetResolution(600, 600);
bmp.Save("e:\\alltogeher.tif", ImageFormat.Tiff);

I would guess either you're not getting enough memory to create that huge
bitmap or you're on a version of Windows that has a GDI+ limit on bitmap
dimensions.

The resolution is added to the bitmap's/file's metadata (for types that support it)
but it doesn't affect the size of the image.

Mark

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: Create a large image Pin
bverp5-Aug-08 9:23
bverp5-Aug-08 9:23 
GeneralRe: Create a large image Pin
Mark Salsbery5-Aug-08 9:40
Mark Salsbery5-Aug-08 9:40 
GeneralRe: Create a large image Pin
bverp5-Aug-08 10:32
bverp5-Aug-08 10:32 
GeneralRe: Create a large image Pin
Mark Salsbery5-Aug-08 11:22
Mark Salsbery5-Aug-08 11:22 
AnswerRe: Create a large image Pin
Guffa5-Aug-08 11:22
Guffa5-Aug-08 11:22 
QuestionSmtp Server Pin
hadad5-Aug-08 3:00
hadad5-Aug-08 3:00 
AnswerRe: Smtp Server Pin
Colin Angus Mackay5-Aug-08 5:47
Colin Angus Mackay5-Aug-08 5:47 
QuestionHow to handle TcpClient Pin
Emil Müller5-Aug-08 2:56
Emil Müller5-Aug-08 2:56 
AnswerRe: How to handle TcpClient Pin
led mike5-Aug-08 4:38
led mike5-Aug-08 4:38 
Questioncolumn in datagrid Pin
benjamin yap5-Aug-08 2:29
benjamin yap5-Aug-08 2:29 
AnswerRe: column in datagrid Pin
paas5-Aug-08 3:24
paas5-Aug-08 3:24 
GeneralRe: column in datagrid Pin
benjamin yap5-Aug-08 3:53
benjamin yap5-Aug-08 3:53 
GeneralRe: column in datagrid Pin
paas5-Aug-08 4:16
paas5-Aug-08 4:16 
QuestionStore/retrieve font in user settings and isolated storage Pin
AndrusM5-Aug-08 2:14
AndrusM5-Aug-08 2:14 
AnswerRe: Store/retrieve font in user settings and isolated storage Pin
led mike5-Aug-08 5:03
led mike5-Aug-08 5:03 
QuestionWhere do unhandled exceptions in event handlers go? Pin
JoeRip5-Aug-08 1:29
JoeRip5-Aug-08 1:29 
AnswerRe: Where do unhandled exceptions in event handlers go? Pin
astanton19785-Aug-08 2:26
astanton19785-Aug-08 2:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.