Boost logo

Boost :

From: Andreas Pokorny (andreas.pokorny_at_[hidden])
Date: 2006-12-10 16:47:35


Lubomir Bourdev <lbourdev_at_[hidden]> wrote:
> One more thing. If you read the image just so you can color convert it
> and save it as PNG, it is better to color convert upon read.
> That way you avoid dealing with runtime images altogether. Your code
> will be slightly faster, will compile faster, will have a smaller
> footprint (both executable and runtime memory) and will handle
> potentially more image formats:
> gray8_image_t gray8_img;
> jpeg_read_and_convert_image("test.jpg", gray8_img);
> png_write_view("test_out.png", const_view(gray8_img));

Thank you! Now thats really cute!

Best regards
Andreas Pokorny

Boost list run by bdawes at, gregod at, cpdaniel at, john at