GATE
gate::graph::RasterImage Class Reference

Public Types

enum  PixelFormat {
  PixelFormat_default = GATE_IMAGE_PIXELFORMAT_DEFAULT , PixelFormat_rgba = GATE_IMAGE_PIXELFORMAT_RGBA , PixelFormat_rgb32 = GATE_IMAGE_PIXELFORMAT_RGB32 , PixelFormat_bgra = GATE_IMAGE_PIXELFORMAT_BGRA ,
  PixelFormat_bgr32 = GATE_IMAGE_PIXELFORMAT_BGR32 , PixelFormat_rgb24 = GATE_IMAGE_PIXELFORMAT_RGB24 , PixelFormat_bgr24 = GATE_IMAGE_PIXELFORMAT_BGR24 , PixelFormat_rgb555 = GATE_IMAGE_PIXELFORMAT_RGB555 ,
  PixelFormat_rgb565 = GATE_IMAGE_PIXELFORMAT_RGB565 , PixelFormat_argb4 = GATE_IMAGE_PIXELFORMAT_ARGB4 , PixelFormat_yuv2 = GATE_IMAGE_PIXELFORMAT_YUV2 , PixelFormat_pal8 = GATE_IMAGE_PIXELFORMAT_PAL8 ,
  PixelFormat_gray8 = GATE_IMAGE_PIXELFORMAT_GRAY8
}
 

Public Member Functions

 RasterImage (gate_rasterimage_t const *image_to_duplicate)
 
 RasterImage (uint32_t width=0, uint32_t height=0, PixelFormat format=PixelFormat_default)
 
 RasterImage (PixelFormat convertToFormat, RasterImage const &fromSource)
 
 RasterImage (RasterImage const &src)
 
RasterImageoperator= (RasterImage const &src)
 
void swap (RasterImage &that) noexcept
 
gate_rasterimage_tc_impl ()
 
gate_rasterimage_t const * c_impl () const
 
bool_t empty () const
 
PixelFormat getPixelFormat () const
 
uint32_t getWidth () const
 
uint32_t getHeight () const
 
void setPixel (uint32_t x, uint32_t y, Color const &color)
 
void setPixel (uint32_t x, uint32_t y, gate_color_t const &color)
 
Color getPixel (uint32_t x, uint32_t y) const
 
void getPixel (uint32_t x, uint32_t y, gate_color_t &color)
 
void * getPixelPtr (uint32_t x, uint32_t y)
 
void const * getPixelPtr (uint32_t x, uint32_t y) const
 
void makeGrayscale ()
 
void makeMonochrome ()
 
RasterImage rotateLeft () const
 
RasterImage rotateRight () const
 
RasterImage rollOver () const
 
RasterImage flipX () const
 
RasterImage flipY () const
 
bool_t operator! () const
 

The documentation for this class was generated from the following files: