mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:28:12 +00:00
LibGfx: Remove try_
prefix from bitmap creation functions
Those don't have any non-try counterpart, so we might as well just omit it.
This commit is contained in:
parent
1971bff314
commit
82a152b696
186 changed files with 598 additions and 598 deletions
|
@ -812,10 +812,10 @@ PDFErrorOr<NonnullRefPtr<Gfx::Bitmap>> Renderer::load_image(NonnullRefPtr<Stream
|
|||
|
||||
if (is_filter(CommonNames::DCTDecode)) {
|
||||
// TODO: stream objects could store Variant<bytes/Bitmap> to avoid seialisation/deserialisation here
|
||||
return TRY(Gfx::Bitmap::try_create_from_serialized_bytes(image->bytes()));
|
||||
return TRY(Gfx::Bitmap::create_from_serialized_bytes(image->bytes()));
|
||||
}
|
||||
|
||||
auto bitmap = MUST(Gfx::Bitmap::try_create(Gfx::BitmapFormat::BGRA8888, { width, height }));
|
||||
auto bitmap = MUST(Gfx::Bitmap::create(Gfx::BitmapFormat::BGRA8888, { width, height }));
|
||||
int x = 0;
|
||||
int y = 0;
|
||||
int const n_components = color_space->number_of_components();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue