mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-07 09:56:59 +00:00
Add missing doc::Image(ImageSpec) impl
This commit is contained in:
parent
83285d1717
commit
4c5637f636
@ -57,6 +57,14 @@ Image* Image::create(PixelFormat format, int width, int height,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// static
|
||||
Image* Image::create(const ImageSpec& spec,
|
||||
const ImageBufferPtr& buffer)
|
||||
{
|
||||
return Image::create((PixelFormat)spec.colorMode(),
|
||||
spec.width(), spec.height(), buffer);
|
||||
}
|
||||
|
||||
// static
|
||||
Image* Image::createCopy(const Image* image, const ImageBufferPtr& buffer)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user