Image Class Reference

Inheritance diagram for Image:

wxObject IDisposable

List of all members.

Public Member Functions

 this (IntPtr wxobj)
 this ()
 this (string name)
 this (int width, int height)
 this (byte[] data, BitmapType type)
 this (int width, int height, bool clear)
 this (int width, int height, ubyte *data, bool static_data)
 this (int width, int height, ubyte *data, ubyte *alpha, bool static_data)
 this (Image image)
void Destroy ()
int Width ()
int Height ()
Size size ()
bool LoadFile (string path)
bool LoadFile (string path, BitmapType type)
bool LoadFile (string path, BitmapType type, int index)
bool LoadFile (string name, string mimetype)
bool LoadFile (string name, string mimetype, int index)
bool SaveFile (string path)
bool SaveFile (string path, BitmapType type)
bool SaveFile (string name, string mimetype)
Image Rescale (int width, int height)
Image Scale (int width, int height)
void SetMaskColour (ubyte r, ubyte g, ubyte b)
void MaskColour (Colour value)
void Mask (bool value)
bool Mask ()
Image Copy ()
Image SubImage (Rectangle rect)
void Paste (Image image, int x, int y)
Image ShrinkBy (int xFactor, int yFactor)
Image Rotate (double angle, Point centre_of_rotation)
Image Rotate (double angle, Point centre_of_rotation, bool interpolating)
Image Rotate (double angle, Point centre_of_rotation, bool interpolating, Point offset_after_rotation)
Image Rotate90 ()
Image Rotate90 (bool clockwise)
Image Mirror ()
Image Mirror (bool horizontally)
void Replace (ubyte r1, ubyte g1, ubyte b1, ubyte r2, ubyte g2, ubyte b2)
void ConvertToMono (ubyte r, ubyte g, ubyte b)
void SetRGB (int x, int y, ubyte r, ubyte g, ubyte b)
ubyte GetRed (int x, int y)
ubyte GetGreen (int x, int y)
ubyte GetBlue (int x, int y)
void SetAlpha (int x, int y, ubyte alpha)
ubyte GetAlpha (int x, int y)
bool FindFirstUnusedColour (inout ubyte r, inout ubyte g, inout ubyte b)
bool FindFirstUnusedColour (inout ubyte r, inout ubyte g, inout ubyte b, ubyte startR)
bool FindFirstUnusedColour (inout ubyte r, inout ubyte g, inout ubyte b, ubyte startR, ubyte startG)
bool FindFirstUnusedColour (inout ubyte r, inout ubyte g, inout ubyte b, ubyte startR, ubyte startG, ubyte startB)
bool SetMaskFromImage (Image mask, ubyte mr, ubyte mg, ubyte mb)
bool ConvertAlphaToMask ()
bool ConvertAlphaToMask (ubyte threshold)
bool Ok ()
ubyte MaskRed ()
ubyte MaskGreen ()
ubyte MaskBlue ()
bool HasPalette ()
Palette palette ()
void palette (Palette value)
void SetOption (string name, string value)
void SetOption (string name, int value)
string GetOption (string name)
int GetOptionInt (string name)
bool HasOption (string name)
uint CountColours ()
uint CountColours (uint stopafter)
uint ComputeHistogram (ImageHistogram h)

Static Public Member Functions

static void InitAllHandlers ()
static this ()
static wxObject New (IntPtr ptr)
static bool CanRead (string name)
static int GetImageCount (string name)
static int GetImageCount (string name, BitmapType type)
static void AddHandler (ImageHandler handler)
static void InsertHandler (ImageHandler handler)
static bool RemoveHandler (string name)
static ImageHandler FindHandler (string name)
static ImageHandler FindHandler (string extension, int imageType)
static ImageHandler FindHandler (int imageType)
static ImageHandler FindHandlerMime (string mimetype)
static string ImageExtWildcard ()
static void CleanUpHandlers ()
static void InitStandardHandlers ()


Constructor & Destructor Documentation

static this (  )  [static]

this ( IntPtr  wxobj  ) 

Reimplemented from wxObject.

this (  ) 

this ( string  name  ) 

this ( int  width,
int  height 
)

this ( byte[]  data,
BitmapType  type 
)

this ( int  width,
int  height,
bool  clear 
)

this ( int  width,
int  height,
ubyte *  data,
bool  static_data 
)

this ( int  width,
int  height,
ubyte *  data,
ubyte *  alpha,
bool  static_data 
)

this ( Image  image  ) 


Member Function Documentation

static void InitAllHandlers (  )  [static]

static wxObject New ( IntPtr  ptr  )  [static]

void Destroy (  ) 

int Width (  ) 

int Height (  ) 

Size size (  ) 

bool LoadFile ( string  path  ) 

bool LoadFile ( string  path,
BitmapType  type 
)

bool LoadFile ( string  path,
BitmapType  type,
int  index 
)

bool LoadFile ( string  name,
string  mimetype 
)

bool LoadFile ( string  name,
string  mimetype,
int  index 
)

bool SaveFile ( string  path  ) 

bool SaveFile ( string  path,
BitmapType  type 
)

bool SaveFile ( string  name,
string  mimetype 
)

Image Rescale ( int  width,
int  height 
)

Image Scale ( int  width,
int  height 
)

void SetMaskColour ( ubyte  r,
ubyte  g,
ubyte  b 
)

void MaskColour ( Colour  value  ) 

void Mask ( bool  value  ) 

bool Mask (  ) 

Image Copy (  ) 

Image SubImage ( Rectangle  rect  ) 

void Paste ( Image  image,
int  x,
int  y 
)

Image ShrinkBy ( int  xFactor,
int  yFactor 
)

Image Rotate ( double  angle,
Point  centre_of_rotation 
)

Image Rotate ( double  angle,
Point  centre_of_rotation,
bool  interpolating 
)

Image Rotate ( double  angle,
Point  centre_of_rotation,
bool  interpolating,
Point  offset_after_rotation 
)

Image Rotate90 (  ) 

Image Rotate90 ( bool  clockwise  ) 

Image Mirror (  ) 

Image Mirror ( bool  horizontally  ) 

void Replace ( ubyte  r1,
ubyte  g1,
ubyte  b1,
ubyte  r2,
ubyte  g2,
ubyte  b2 
)

void ConvertToMono ( ubyte  r,
ubyte  g,
ubyte  b 
)

void SetRGB ( int  x,
int  y,
ubyte  r,
ubyte  g,
ubyte  b 
)

ubyte GetRed ( int  x,
int  y 
)

ubyte GetGreen ( int  x,
int  y 
)

ubyte GetBlue ( int  x,
int  y 
)

void SetAlpha ( int  x,
int  y,
ubyte  alpha 
)

ubyte GetAlpha ( int  x,
int  y 
)

bool FindFirstUnusedColour ( inout ubyte  r,
inout ubyte  g,
inout ubyte  b 
)

bool FindFirstUnusedColour ( inout ubyte  r,
inout ubyte  g,
inout ubyte  b,
ubyte  startR 
)

bool FindFirstUnusedColour ( inout ubyte  r,
inout ubyte  g,
inout ubyte  b,
ubyte  startR,
ubyte  startG 
)

bool FindFirstUnusedColour ( inout ubyte  r,
inout ubyte  g,
inout ubyte  b,
ubyte  startR,
ubyte  startG,
ubyte  startB 
)

bool SetMaskFromImage ( Image  mask,
ubyte  mr,
ubyte  mg,
ubyte  mb 
)

bool ConvertAlphaToMask (  ) 

bool ConvertAlphaToMask ( ubyte  threshold  ) 

static bool CanRead ( string  name  )  [static]

static int GetImageCount ( string  name  )  [static]

static int GetImageCount ( string  name,
BitmapType  type 
) [static]

bool Ok (  ) 

ubyte MaskRed (  ) 

ubyte MaskGreen (  ) 

ubyte MaskBlue (  ) 

bool HasPalette (  ) 

Palette palette (  ) 

void palette ( Palette  value  ) 

void SetOption ( string  name,
string  value 
)

void SetOption ( string  name,
int  value 
)

string GetOption ( string  name  ) 

int GetOptionInt ( string  name  ) 

bool HasOption ( string  name  ) 

uint CountColours (  ) 

uint CountColours ( uint  stopafter  ) 

uint ComputeHistogram ( ImageHistogram  h  ) 

static void AddHandler ( ImageHandler  handler  )  [static]

static void InsertHandler ( ImageHandler  handler  )  [static]

static bool RemoveHandler ( string  name  )  [static]

static ImageHandler FindHandler ( string  name  )  [static]

static ImageHandler FindHandler ( string  extension,
int  imageType 
) [static]

static ImageHandler FindHandler ( int  imageType  )  [static]

static ImageHandler FindHandlerMime ( string  mimetype  )  [static]

static string ImageExtWildcard (  )  [static]

static void CleanUpHandlers (  )  [static]

static void InitStandardHandlers (  )  [static]


The documentation for this class was generated from the following file:
Generated on Sun Feb 1 21:30:25 2009 for wxD by  doxygen 1.5.4