70 LE_IMAGE_FORMAT_RAW = 0,
77 #define LE_IMAGE_FORMAT_COUNT (LE_IMAGE_FORMAT_RLE + 1) 92 LE_IMAGE_USE_MASK_COLOR = 1 << 0,
93 LE_IMAGE_USE_MASK_MAP = 1 << 1,
94 LE_IMAGE_USE_ALPHA_MAP = 1 << 2,
95 LE_IMAGE_INTERNAL_ALLOC = 1 << 3,
96 LE_IMAGE_DIRECT_BLIT = 1 << 4
113 LE_IMAGEFILTER_NEAREST_NEIGHBOR,
114 LE_IMAGEFILTER_BILINEAR,
248 uint32_t locationID);
390 #if LE_STREAMING_ENABLED == 1 398 typedef struct leImageStreamDecoder
400 leStreamManager base;
401 } leImageStreamDecoder;
This struct represents an image decoder.
Definition: legato_image.h:348
Color definitions and functions.
void leProcessImage(leImage *img, size_t addr, leColorMode mode)
Process an image to another location.
Definition: legato_image.c:418
Common macros and definitions used by Legato.
struct leImageMap leImageMap
This struct represents an image map.
leResult leImage_Resize(const leImage *src, const leRect *sourceRect, leImageFilterMode mode, uint32_t sizeX, uint32_t sizeY, leImage *target)
Resize image.
Definition: legato_image.c:202
leResult leImage_ResizeDraw(const leImage *src, const leRect *sourceRect, leImageFilterMode mode, uint32_t sizeX, uint32_t sizeY, int32_t x, int32_t y, uint32_t a)
Resize draw image.
Definition: legato_image.c:247
Definition: legato_image.h:181
This struct represents a palette asset.
Definition: legato_palette.h:69
leResult leImage_Copy(const leImage *src, const leRect *sourceRect, int32_t x, int32_t y, leImage *dst)
Copy image.
Definition: legato_image.c:284
leImageFormat
This enum represents an image format.
Definition: legato_image.h:68
leImageFlags
This enum represents image flags.
Definition: legato_image.h:90
struct leImageDecoder leImageDecoder
This struct represents an image decoder.
leResult
This enum represents function call results.
Definition: legato_common.h:123
This struct represents a stream descriptor.
Definition: legato_stream.h:60
This struct represents a rectangle.
Definition: legato_common.h:394
Pixel Buffer functions and definitions.
leResult leImage_Create(leImage *img, uint32_t width, uint32_t height, leColorMode mode, void *data, uint32_t locationID)
Create an image.
Definition: legato_image.c:85
leImageFilterMode
This enum represents image filter modes.
Definition: legato_image.h:110
leResult leImage_Render(const leImage *src, const leRect *sourceRect, int32_t x, int32_t y, leBool ignoreMask, leBool ignoreAlpha, leImage *dst)
Render image.
Definition: legato_image.c:315
void leImage_InitDecoders(void)
Get Event Count.
Definition: legato_image.c:54
Definition: legato_pixelbuffer.h:90
This struct represents an image map.
Definition: legato_image.h:128
leImage * leImage_Allocate(uint32_t width, uint32_t height, leColorMode mode)
Allocate an image buffer.
Definition: legato_image.c:113
leColorMode
This enum represents the supported RGB color formats.
Definition: legato_color.h:148
leBool
This enum represents booleans.
Definition: legato_common.h:146
leResult leImage_Draw(const leImage *img, const leRect *sourceRect, int32_t x, int32_t y, uint32_t a)
Draw an Image.
Definition: legato_image.c:165
leResult leImage_Free(leImage *img)
Free image buffer.
Definition: legato_image.c:154
leResult leImage_RotateDraw(const leImage *src, const leRect *sourceRect, leImageFilterMode mode, int32_t angle, int32_t x, int32_t y, uint32_t a)
Rotate draw image.
Definition: legato_image.c:383
leResult leImage_Rotate(const leImage *src, const leRect *sourceRect, leImageFilterMode mode, int32_t angle, leImage **dst, leBool alloc)
Rotate image.
Definition: legato_image.c:350
Defines a common header for all stream operations.