mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 16:47:28 +01:00
Add DecodeImageCallbacks::SelectPixfmt
This commit is contained in:
1 parent
441e96a8d4
commit
5767f030a3
5 files changed
+175
-155
No files matched your search
@@ -111,7 +111,7 @@ load_image(const char* filename) {
|
||||
wuffs_aux::DecodeImageCallbacks callbacks;
|
||||
wuffs_aux::sync_io::FileInput input(file);
|
||||
wuffs_aux::DecodeImageResult res = wuffs_aux::DecodeImage(
|
||||
callbacks, input, WUFFS_BASE__PIXEL_FORMAT__BGRA_PREMUL,
|
||||
callbacks, input,
|
||||
// Use PIXEL_BLEND__SRC_OVER, not the default PIXEL_BLEND__SRC, because
|
||||
// we also pass a background color.
|
||||
WUFFS_BASE__PIXEL_BLEND__SRC_OVER,
|
||||
|
||||
Reference in new issue
Block a user