[Mono-list] How to read a JPG into a 2D array of colors?
stifu at free.fr
Fri Jun 17 05:04:02 EDT 2011
Yes. You could initialize such an Image, then use the GetPixel method to fill
an array of colors (that would be slow, but you could do it in a way that's
faster, like using unsafe code or other ways).
And if you want to show your image progressively, you could fill the color
array on other threads, or using parallelism.
> Doesn't the Image class in the framework have support for JPEG?
> 2011/6/17 rygoody <rygoody at gmail.com>:
>> Pretty much as the title says, how can I read a JPG into a 2D array of
>> Ideally how could I stream a JPG into a 2D array of colors? So it would
>> progressively get clearer.
>> View this message in context:
>> Sent from the Mono - General mailing list archive at Nabble.com.
>> Mono-list maillist - Mono-list at lists.ximian.com
> Mono-list maillist - Mono-list at lists.ximian.com
View this message in context: http://mono.1490590.n4.nabble.com/How-to-read-a-JPG-into-a-2D-array-of-colors-tp3604716p3604911.html
Sent from the Mono - General mailing list archive at Nabble.com.
More information about the Mono-list