[Mono-list] How to read a JPG into a 2D array of colors?

Stifu 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.


Alex wrote:
> 
> Hi,
> 
> Doesn't the Image class in the framework have support for JPEG?
> 
> Regards,
> Alex
> 
> 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
>> colors?
>>
>> Ideally how could I stream a JPG into a 2D array of colors? So it would
>> progressively get clearer.
>>
>> --
>> View this message in context:
>> http://mono.1490590.n4.nabble.com/How-to-read-a-JPG-into-a-2D-array-of-colors-tp3604716p3604716.html
>> Sent from the Mono - General mailing list archive at Nabble.com.
>> _______________________________________________
>> Mono-list maillist  -  Mono-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-list
>>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> 


--
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 mailing list