mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:18:12 +00:00
LibGfx: Allow passing an ideal size to image decoders
The ideal size is the size the user will display the image. Raster formats should ignore this parameter, but vector formats can use it to generate a bitmap of the ideal size.
This commit is contained in:
parent
ff47223301
commit
e7cddda7e1
20 changed files with 22 additions and 22 deletions
|
@ -801,7 +801,7 @@ size_t WebPImageDecoderPlugin::first_animated_frame_index()
|
|||
return 0;
|
||||
}
|
||||
|
||||
ErrorOr<ImageFrameDescriptor> WebPImageDecoderPlugin::frame(size_t index)
|
||||
ErrorOr<ImageFrameDescriptor> WebPImageDecoderPlugin::frame(size_t index, Optional<IntSize>)
|
||||
{
|
||||
if (index >= frame_count())
|
||||
return Error::from_string_literal("WebPImageDecoderPlugin: Invalid frame index");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue