Click here to Skip to main content
15,893,381 members
Please Sign up or sign in to vote.
3.00/5 (3 votes)
See more:
here i want to create extremly large resolution pictures is there any way to create the image like

bitmap.SetPixel(int64, int64,color);
Posted
Comments
Sergey Alexandrovich Kryukov 12-Jun-11 0:47am    
Not a question. Idea of SetPixel won't work though.
--SA

1 solution

No.
Several reasons:
1) SetPixcel only works with int values - i.e. 32 bit indexes.
2) Even if you could, any operations involving SetPixel over that number of pixcels would be horrifically slow!
3) You can't even create a bitmap that big: 2^32 is 4Gb, and .NET has a maximum individual object size of 2Gb - which means that for practical purposes you can't create a bit map larger that 1 row x 500,000,000 columns.
 
Share this answer
 
Comments
vishnulalr 11-Jun-11 12:10pm    
slowness is not my concern.please is there any possibility to give large x,y values
vishnulalr 11-Jun-11 12:15pm    
is there any function other than setpixel(int,int,color);
OriginalGriff 11-Jun-11 12:16pm    
Read the answer: Not in .NET - you can't create any object that big.
You will have to learn C++ and do it in native code...
vishnulalr 11-Jun-11 13:03pm    
thanks for your replay sir
vishnulalr 11-Jun-11 13:06pm    
is it ordinary c++ or visual c++ in visualstudio 2008

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900