Click here to Skip to main content
15,895,142 members
Home / Discussions / C#
   

C#

 
GeneralRe: byte array to image Pin
dan!sh 8-Jul-09 0:33
professional dan!sh 8-Jul-09 0:33 
GeneralRe: byte array to image Pin
Vivek Vijayan8-Jul-09 0:55
Vivek Vijayan8-Jul-09 0:55 
GeneralRe: byte array to image Pin
Vivek Vijayan8-Jul-09 1:12
Vivek Vijayan8-Jul-09 1:12 
GeneralRe: byte array to image Pin
dan!sh 8-Jul-09 2:42
professional dan!sh 8-Jul-09 2:42 
GeneralRe: byte array to image Pin
Vivek Vijayan8-Jul-09 2:26
Vivek Vijayan8-Jul-09 2:26 
AnswerRe: byte array to image Pin
harold aptroot8-Jul-09 1:37
harold aptroot8-Jul-09 1:37 
GeneralRe: byte array to image Pin
Vivek Vijayan8-Jul-09 2:25
Vivek Vijayan8-Jul-09 2:25 
GeneralRe: byte array to image Pin
harold aptroot8-Jul-09 2:41
harold aptroot8-Jul-09 2:41 
My question is actually very important, if your data is "just pixels" then saving it in a BMP file will just give an invalid BMP file - when the Bitmap importer then tries to read it, it will read the width and height but they would be colors instead of the width and height and they will probably be very big, then it will try to allocate too much memory because it thinks the picture is that big (when of course it really isn't).
So what is your data? Is it pixels? Or do you have a proper image header in there? If so, of what type?



GeneralRe: byte array to image Pin
Vivek Vijayan8-Jul-09 4:08
Vivek Vijayan8-Jul-09 4:08 
GeneralRe: byte array to image Pin
harold aptroot8-Jul-09 4:20
harold aptroot8-Jul-09 4:20 
GeneralRe: byte array to image Pin
Vivek Vijayan8-Jul-09 4:27
Vivek Vijayan8-Jul-09 4:27 
GeneralRe: byte array to image Pin
harold aptroot8-Jul-09 4:32
harold aptroot8-Jul-09 4:32 
GeneralRe: byte array to image Pin
Vivek Vijayan8-Jul-09 5:01
Vivek Vijayan8-Jul-09 5:01 
GeneralRe: byte array to image Pin
Vivek Vijayan8-Jul-09 5:09
Vivek Vijayan8-Jul-09 5:09 
GeneralRe: byte array to image Pin
Vivek Vijayan8-Jul-09 5:13
Vivek Vijayan8-Jul-09 5:13 
GeneralRe: byte array to image Pin
harold aptroot8-Jul-09 5:15
harold aptroot8-Jul-09 5:15 
GeneralRe: byte array to image Pin
Vivek Vijayan8-Jul-09 5:23
Vivek Vijayan8-Jul-09 5:23 
GeneralRe: byte array to image Pin
harold aptroot8-Jul-09 5:26
harold aptroot8-Jul-09 5:26 
GeneralRe: byte array to image Pin
Vivek Vijayan8-Jul-09 5:49
Vivek Vijayan8-Jul-09 5:49 
GeneralRe: byte array to image Pin
harold aptroot8-Jul-09 6:01
harold aptroot8-Jul-09 6:01 
GeneralRe: byte array to image Pin
Vivek Vijayan8-Jul-09 6:09
Vivek Vijayan8-Jul-09 6:09 
GeneralRe: byte array to image Pin
harold aptroot8-Jul-09 6:20
harold aptroot8-Jul-09 6:20 
GeneralRe: byte array to image Pin
Vivek Vijayan8-Jul-09 6:32
Vivek Vijayan8-Jul-09 6:32 
GeneralRe: byte array to image Pin
Vivek Vijayan8-Jul-09 6:49
Vivek Vijayan8-Jul-09 6:49 
GeneralRe: byte array to image Pin
Vivek Vijayan8-Jul-09 7:00
Vivek Vijayan8-Jul-09 7:00 

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.