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.);
494#ifndef DOXYGEN_SHOULD_SKIP_THIS
495 class NativeBitmapInternal;
515 NativeBitmapInternal* priv;
const T & y() const
Read alias.
Definition FVector.h:118
const T & x() const
Read alias.
Definition FVector.h:104
Native bitmap: image stored in graphics card format, fast to display.
Definition ImageIO.h:514
NativeBitmap(const NativeBitmap &I)
Copy constructor.
NativeBitmap(int w, int h)
Constructor with dimensions.
void setGreyImage(const IntPoint2 &p, const octet *g, int w, int h)
Set grey image.
Definition ImageIO.h:615
void setColorImage(int x, int y, const Color *cols, int w, int h)
Set color image.
~NativeBitmap()
Destructor.
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
void setColorImage(int x, int y, const octet *r, const octet *g, const octet *b, int w, int h)
Set color image.
friend void putNativeBitmap(const IntPoint2 &p, const NativeBitmap &bm, bool xorMode=false, double fact=1.)
Display native bitmap.
Definition ImageIO.h:647
void setGreyImage(int x, int y, const octet *g, int w, int h)
Set grey image.
const NativeBitmap & operator=(const NativeBitmap &I)
Assignment.
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 setPoint(const IntPoint2 &p, Color col)
Set point.
Definition ImageIO.h:634
void setColorImage(int x, int y, const octet *rgb, int w, int h)
Set color image.
Definition ImageIO.h:583
NativeBitmap()
Empty constructor.
friend void putNativeBitmap(int x, int y, const NativeBitmap &bm, bool xorMode, double fact)
Display native bitmap.
void setColorImage(const IntPoint2 &p, const octet *rgb, int w, int h)
Set color image.
Definition ImageIO.h:594
RED GREEN BLUE color.
Definition Color.h:28
RGB< octet > Color
RGB<octet> alias.
Definition Color.h:283
unsigned char octet
0 to 255 integer type.
Definition Color.h:18
RGBA< octet > AlphaColor
RGBA<byte> alias.
Definition Color.h:356
void putGreyImage(int x, int y, const octet *g, int w, int h, bool xorMode=false, double fact=1.)
Display grey bitmap.
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).
void putNativeBitmap(int x, int y, const NativeBitmap &bm, bool xorMode=false, double fact=1.)
Display native bitmap.
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.
bool saveAlphaColorImage(const std::string &name, Imagine::AlphaColor *cols, int w, int h, int quality=85)
Save color image with alpha channel.
bool loadAlphaColorImage(const std::string &name, AlphaColor *&acols, int &w, int &h)
Load color image with alpha channel.
bool loadGreyImage(const std::string &name, octet *&g, int &w, int &h)
Load grey image.
bool saveGreyImage(const std::string &name, const octet *g, int w, int h, int quality=85)
Save grey image.
Color capturePoint(int x, int y)
Capture (point).
bool loadColorImage(const std::string &name, Color *&cols, int &w, int &h)
Load color image.
void captureWindow(Color *&cols, int &w, int &h)
Window capture.
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.
AlphaColor * convertColorToAlphaColor(const Imagine::Color *cols, int w, int h)
Convert a Color Image to a AlphaColor Image.
Coords< 2 > IntPoint2
Plane point with integral coordinates.
Definition Types.h:17
void putColorImage(int x, int y, const Color *cols, int w, int h, bool xorMode=false, double fact=1.)
Display color bitmap.