|
ION_API const gfx::ImagePtr | ion::image::ConvertImage (const gfx::ImagePtr &image, gfx::Image::Format target_format, bool is_wipeable, const base::AllocatorPtr &allocator, const base::AllocatorPtr &temporary_allocator) |
| Converts an existing Image to the given target format and returns the resulting Image. More...
|
|
const ImagePtr ION_API | ion::image::ConvertFromExternalImageData (const void *data, size_t data_size, bool flip_vertically, bool is_wipeable, const base::AllocatorPtr &allocator) |
| Converts external image data to an ImagePtr with data in canonical format. More...
|
|
bool ION_API | ion::image::IsIonRawImageFormat (const void *data, size_t data_size) |
| Returns true if "Ion raw" format header is detected in data . More...
|
|
ION_API const std::vector< uint8 > | ion::image::ConvertToExternalImageData (const gfx::ImagePtr &image, ExternalImageFormat external_format, bool flip_vertically) |
| Converts an existing Image to data in external_format , returning a vector. More...
|
|
ION_API const gfx::ImagePtr | ion::image::DownsampleImage2x (const gfx::ImagePtr &image, bool is_wipeable, const base::AllocatorPtr &allocator) |
| Returns an image half the width and height of image . More...
|
|
const gfx::ImagePtr | ion::image::ResizeImage (const gfx::ImagePtr &image, uint32 out_width, uint32 out_height, bool is_wipeable, const base::AllocatorPtr &allocator) |
| Returns a copy of image scaled to the specified dimensions. More...
|
|
ION_API void | ion::image::FlipImage (const gfx::ImagePtr &image) |
| Flips an image vertically in place. More...
|
|
ION_API void | ion::image::FlipImageHorizontally (const gfx::ImagePtr &image) |
| Flips an image horizontally in place. More...
|
|
ION_API void | ion::image::StraightAlphaFromPremultipliedAlpha (const gfx::ImagePtr &image) |
| Converts a "pre-multiplied alpha" RGBA image into a "straight alpha" RGBA image. More...
|
|