}
}
-PixelFormat pixelformat_from_image(const Graphics::Image &image)
+PixelFormat pixelformat_from_image(const Graphics::Image &image, bool srgb)
{
PixelComponents comp = components_from_graphics(image.get_format());
- return make_pixelformat(comp, UNSIGNED_BYTE);
+ return make_pixelformat(comp, UNSIGNED_BYTE, srgb);
}
PixelFormat make_pixelformat(PixelComponents comp, DataType type, bool srgb)