7 #ifndef IMAGINE_GRAPHICS_IMAGEIO_H
8 #define IMAGINE_GRAPHICS_IMAGEIO_H
30 void putColorImage(
int x,
int y,
const Color* cols,
int w,
int h,
bool xorMode =
false,
double fact = 1.);
55 void putColorImage(
int x,
int y,
const octet *rgb,
int w,
int h,
bool xorMode =
false,
double fact = 1.);
169 void putGreyImage(
int x,
int y,
const octet* g,
int w,
int h,
bool xorMode =
false,
double fact = 1.);
314 bool saveColorImage(
const std::string& name,
const Color* cols,
int w,
int h,
int quality = 85);
338 bool saveColorImage(
const std::string &name,
const octet *rgb,
int w,
int h,
int quality = 85);
386 bool saveGreyImage(
const std::string& name,
const octet* g,
int w,
int h,
int quality = 85);
494 #ifndef DOXYGEN_SHOULD_SKIP_THIS
495 class NativeBitmapInternal;
498 void putNativeBitmap(
int x,
int y,
const NativeBitmap &bm,
bool xorMode=
false,
double fact=1.);
515 NativeBitmapInternal* priv;
654 #endif // IMAGINE_GRAPHICS_IMAGEIO_H
bool saveColorImage(const std::string &name, const Color *cols, int w, int h, int quality=85)
Save color image.
void captureRectangle(int x, int y, Color *c, int w, int h)
Capture (sub window).
AlphaColor * convertColorToAlphaColor(const Imagine::Color *cols, int w, int h)
Convert a Color Image to a AlphaColor Image.
Native bitmap: image stored in graphics card format, fast to display.
Definition: ImageIO.h:514
Coords< 2 > IntPoint2
Plane point with integral coordinates.
Definition: Types.h:17
RGBA< octet > AlphaColor
RGBA alias.
Definition: Color.h:356
bool loadColorImage(const std::string &name, Color *&cols, int &w, int &h)
Load color image.
void setColorImage(int x, int y, const octet *rgb, int w, int h)
Set color image.
Definition: ImageIO.h:583
void setMaskFromColor(octet *&r, octet *&g, octet *&b, octet *&a, int w, int h, const Color &col)
Create a transparency mask from a specified color-key.
void putNativeBitmap(int x, int y, const NativeBitmap &bm, bool xorMode=false, double fact=1.)
Display native bitmap.
NativeBitmap()
Empty constructor.
RGB< octet > Color
RGB alias.
Definition: Color.h:283
const NativeBitmap & operator=(const NativeBitmap &I)
Assignment.
void setColorImage(const IntPoint2 &p, const octet *rgb, int w, int h)
Set color image.
Definition: ImageIO.h:594
void captureWindow(Color *&cols, int &w, int &h)
Window capture.
Color capturePoint(int x, int y)
Capture (point).
bool saveAlphaColorImage(const std::string &name, Imagine::AlphaColor *cols, int w, int h, int quality=85)
Save color image with alpha channel.
void putAlphaColorImage(int x, int y, Imagine::AlphaColor *cols, int w, int h, bool xorMode=false, double fact=1.)
Display color bitmap with alpha channel.
RED GREEN BLUE Alpha color.
Definition: Color.h:140
void setPoint(const IntPoint2 &p, Color col)
Set point.
Definition: ImageIO.h:634
void setGreyImage(const IntPoint2 &p, const octet *g, int w, int h)
Set grey image.
Definition: ImageIO.h:615
bool saveGreyImage(const std::string &name, const octet *g, int w, int h, int quality=85)
Save grey image.
void putGreyImage(int x, int y, const octet *g, int w, int h, bool xorMode=false, double fact=1.)
Display grey bitmap.
void putColorImage(int x, int y, const Color *cols, int w, int h, bool xorMode=false, double fact=1.)
Display color bitmap.
~NativeBitmap()
Destructor.
bool loadGreyImage(const std::string &name, octet *&g, int &w, int &h)
Load grey image.
void setColorImage(int x, int y, const octet *r, const octet *g, const octet *b, int w, int h)
Set color image.
unsigned char octet
0 to 255 integer type.
Definition: Color.h:18
friend void putNativeBitmap(const IntPoint2 &p, const NativeBitmap &bm, bool xorMode=false, double fact=1.)
Display native bitmap.
Definition: ImageIO.h:647
bool loadAlphaColorImage(const std::string &name, AlphaColor *&acols, int &w, int &h)
Load color image with alpha channel.
void setPoint(int x, int y, Color col)
Set point.
void setColorImage(const IntPoint2 &p, const Color *cols, int w, int h)
Set color image.
Definition: ImageIO.h:572
void setGreyImage(int x, int y, const octet *g, int w, int h)
Set grey image.
const T & x() const
Read alias.
Definition: FVector.h:104
Imagine++ namespace.
Definition: Array.h:7
RED GREEN BLUE color.
Definition: Color.h:28
const T & y() const
Read alias.
Definition: FVector.h:118
friend void putNativeBitmap(int x, int y, const NativeBitmap &bm, bool xorMode, double fact)
Display native bitmap.
void setColorImage(const IntPoint2 &p, const octet *r, const octet *g, const octet *b, int w, int h)
Set color image.
Definition: ImageIO.h:551