PPL7-Icon Patrick's Programming Library Version 7.0.0 - Dokumentation
ppl7::grafix-Namensbereichsreferenz

Namensraum der Grafik-Funktionen. Mehr ...

Ausführliche Beschreibung

Im Namespace ppl7::grafix sind alle Grafikfunktionen der Library enthalten.

Klassen

class  Color
 Ein Datenobjekt zum Speichern eines Farbwertes. Mehr ...
 
class  Drawable
 Basisklasse für Zeichenflächen. Mehr ...
 
struct  DRAWABLE_DATA
 
class  Font
 Repräsentiert die verschiedenen Parameter eines Fonts. Mehr ...
 
class  FontEngine
 Basisklasse für Font-Engines. Mehr ...
 
class  FontEngineFont4
 
class  FontEngineFont5
 Font-Engine für PFP Version 5 Fonts. Mehr ...
 
class  FontEngineFont6
 Font-Engine für PFP Version 6 Fonts. Mehr ...
 
class  FontEngineFreeType
 Font-Engine für von FreeType unterstützte Fonts. Mehr ...
 
class  FontFile
 Interne Klasse zur Verwaltung aller geladener Font-Dateien. Mehr ...
 
class  Grafix
 Hauptklasse für alle Grafik-Operationen. Mehr ...
 
class  Image
 Eine Bitmap-Grafik im Hauptspeicher. Mehr ...
 
struct  IMAGE
 
class  ImageFilter
 Basisklasse für Import-/Export-Filter verschiedener Grafikformate. Mehr ...
 
class  ImageFilter_BMP
 Import-/Export-Filter für BMP-Dateien. Mehr ...
 
class  ImageFilter_GIF
 Import-Filter für GIF-Dateien. Mehr ...
 
class  ImageFilter_ImageMagick
 Import-/Export-Filter für diverse Formate. Mehr ...
 
class  ImageFilter_JPEG
 
class  ImageFilter_PNG
 Import-/Export-Filter für PNG-Dateien. Mehr ...
 
class  ImageFilter_PPM
 Import-/Export-Filter für PPM-Dateien. Mehr ...
 
class  ImageFilter_TGA
 Import-Filter für TGA-Dateien. Mehr ...
 
class  ImageFilter_TIFF
 Import-Filter für TIFF-Dateien. Mehr ...
 
class  ImageList
 Ein Container für eine Grafik mit mehreren gleichgroßen Icons. Mehr ...
 
class  Point
 Repräsentiert einen Punkt in einem zweidimensionalen Koordinatensystem. Mehr ...
 
class  Point3D
 Repräsentiert einen Punkt in einem dreidimensionalen Koordinatensystem. Mehr ...
 
class  Rect
 Repräsentiert ein Rechteck in einem zweidimensionalen Koordinatensystem. Mehr ...
 
class  RGBFormat
 Datentyp, der das Farbformat einer Zeichenfläche repräsentiert. Mehr ...
 
class  Size
 Repräsentiert Breite und Höhe eines beliebigen Objekts in einem zweidimensionalen Koordinatensystem. Mehr ...
 
class  Sprite
 Klasse zum Anzeigen von Sprites. Mehr ...
 

Typdefinitionen

typedef ppluint32 SurfaceColor
 

Aufzählungen

enum  J_DCT_METHOD { JDCT_ISLOW, JDCT_IFAST, JDCT_FLOAT }
 

Funktionen

void BltGlyph_M8_32 (GLYPH *g)
 
double Distance (const Point &p1, const Point &p2)
 
 empty_output_buffer (j_compress_ptr cinfo)
 
 fill_input_buffer (j_decompress_ptr cinfo)
 
GrafixGetGrafix ()
 
 init_destination (j_compress_ptr cinfo)
 
 init_source (j_decompress_ptr cinfo)
 
bool operator!= (const Size &s1, const Size &s2)
 
bool operator!= (const Font &f1, const Font &f2)
 
bool operator!= (const Point3D &p1, const Point3D &p2)
 
bool operator!= (const Point &p1, const Point &p2)
 
bool operator!= (const Rect &r1, const Rect &r2)
 
bool operator!= (const RGBFormat &r1, const RGBFormat &r2)
 Zwei Farbformate vergleichen. Mehr ...
 
bool operator!= (const RGBFormat &r1, RGBFormat::Identifier r2)
 Zwei Farbformate vergleichen. Mehr ...
 
bool operator!= (RGBFormat::Identifier r1, const RGBFormat &r2)
 Zwei Farbformate vergleichen. Mehr ...
 
const Size operator* (const Size &size, double factor)
 
const Size operator* (double factor, const Size &size)
 
const Point3D operator* (const Point3D &point, double factor)
 
const Point3D operator* (double factor, const Point3D &point)
 
const Point operator* (const Point &point, double factor)
 
const Point operator* (double factor, const Point &point)
 
const Color operator* (const Color &color, float factor)
 Multiplikation einer Farbe mit einem Faktor. Mehr ...
 
const Color operator* (float factor, const Color &color)
 Multiplikation einer Farbe mit einem Faktor. Mehr ...
 
const Size operator+ (const Size &s1, const Size &s2)
 
const Point3D operator+ (const Point3D &p1, const Point3D &p2)
 
const Point operator+ (const Point &p1, const Point &p2)
 
const Color operator+ (const Color &color1, const Color &color2)
 
const Size operator- (const Size &s1, const Size &s2)
 
const Size operator- (const Size &size)
 
const Point3D operator- (const Point3D &p1, const Point3D &p2)
 
const Point3D operator- (const Point3D &point)
 
const Point operator- (const Point &p1, const Point &p2)
 
const Point operator- (const Point &point)
 
const Size operator/ (const Size &size, double divisor)
 
const Point3D operator/ (const Point3D &point, double divisor)
 
const Point operator/ (const Point &point, double divisor)
 
std::ostream & operator<< (std::ostream &s, const Color &c)
 
bool operator== (const Size &s1, const Size &s2)
 
bool operator== (const Font &f1, const Font &f2)
 
bool operator== (const Point3D &p1, const Point3D &p2)
 
bool operator== (const Point &p1, const Point &p2)
 
bool operator== (const Rect &r1, const Rect &r2)
 
bool operator== (const RGBFormat &r1, const RGBFormat &r2)
 Zwei Farbformate vergleichen. Mehr ...
 
bool operator== (const RGBFormat &r1, RGBFormat::Identifier r2)
 Zwei Farbformate vergleichen. Mehr ...
 
bool operator== (RGBFormat::Identifier r1, const RGBFormat &r2)
 Zwei Farbformate vergleichen. Mehr ...
 
 PPL7EXCEPTION (UnknownColorFormatException, Exception)
 
 PPL7EXCEPTION (UnsupportedColorFormatException, Exception)
 
 PPL7EXCEPTION (NoGrafixEngineException, Exception)
 
 PPL7EXCEPTION (EmptyDrawableException, Exception)
 
 PPL7EXCEPTION (UnknownBltMethodException, Exception)
 
 PPL7EXCEPTION (DuplicateGrafixEngineException, Exception)
 
 PPL7EXCEPTION (FunctionUnavailableException, Exception)
 
 PPL7EXCEPTION (InvalidImageSizeException, Exception)
 
 PPL7EXCEPTION (UnknownImageFormatException, Exception)
 
 PPL7EXCEPTION (FontEngineInitializationException, Exception)
 
 PPL7EXCEPTION (FontEngineUninitializedException, Exception)
 
 PPL7EXCEPTION (InvalidFontException, Exception)
 
 PPL7EXCEPTION (NoSuitableFontEngineException, Exception)
 
 PPL7EXCEPTION (FontNotFoundException, Exception)
 
 PPL7EXCEPTION (InvalidFontEngineException, Exception)
 
 PPL7EXCEPTION (InvalidSpriteException, Exception)
 
 PPL7EXCEPTION (InvalidFontFormatException, Exception)
 
 PPL7EXCEPTION (InvalidFontFaceException, Exception)
 
 PPL7EXCEPTION (UnknownFontFaceException, Exception)
 
 skip_input_data (j_decompress_ptr cinfo, long num_bytes)
 
 term_destination (j_compress_ptr cinfo)
 
 term_source (j_decompress_ptr cinfo)
 

Variablen

char * alphatab =NULL
 

Dokumentation der benutzerdefinierten Typen

typedef ppluint32 ppl7::grafix::SurfaceColor

Dokumentation der Aufzählungstypen

Aufzählungswerte
JDCT_ISLOW 
JDCT_IFAST 
JDCT_FLOAT 

Dokumentation der Funktionen

void ppl7::grafix::BltGlyph_M8_32 ( GLYPH *  g)
double ppl7::grafix::Distance ( const Point &  p1,
const Point &  p2 
)
related
ppl7::grafix::empty_output_buffer ( j_compress_ptr  cinfo)
ppl7::grafix::fill_input_buffer ( j_decompress_ptr  cinfo)
Grafix * ppl7::grafix::GetGrafix ( )
ppl7::grafix::init_destination ( j_compress_ptr  cinfo)
ppl7::grafix::init_source ( j_decompress_ptr  cinfo)
bool ppl7::grafix::operator!= ( const Size &  s1,
const Size &  s2 
)
bool ppl7::grafix::operator!= ( const Font &  f1,
const Font &  f2 
)
bool ppl7::grafix::operator!= ( const Point3D &  p1,
const Point3D &  p2 
)
bool ppl7::grafix::operator!= ( const Point &  p1,
const Point &  p2 
)
bool ppl7::grafix::operator!= ( const Rect &  r1,
const Rect &  r2 
)
bool ppl7::grafix::operator!= ( const RGBFormat &  r1,
const RGBFormat &  r2 
)
Beschreibung:
Mit dem Operatoren != und == können zwei Farbwerte miteinander verglichen werden.
Parameter
r1Erstes Farbformat. Kenn entweder eine andere RGBFormat-Klasse sein, oder ein Wert aus der Enumeration RGBFormat::Identifier
r2Zweites Farbformat. Kenn entweder eine andere RGBFormat-Klasse sein, oder ein Wert aus der Enumeration RGBFormat::Identifier
Rückgabe
Wird == verwendet, liefert die Funktion true zurück, wenn beide Farbformate identisch sind, sonst false. Wird != verwendet, liefert die Funktion true zurück, wenn die beiden Farbformate unterschiedlich sind, sonst true.
bool ppl7::grafix::operator!= ( const RGBFormat &  r1,
RGBFormat::Identifier  r2 
)
Beschreibung:
Mit dem Operatoren != und == können zwei Farbwerte miteinander verglichen werden.
Parameter
r1Erstes Farbformat. Kenn entweder eine andere RGBFormat-Klasse sein, oder ein Wert aus der Enumeration RGBFormat::Identifier
r2Zweites Farbformat. Kenn entweder eine andere RGBFormat-Klasse sein, oder ein Wert aus der Enumeration RGBFormat::Identifier
Rückgabe
Wird == verwendet, liefert die Funktion true zurück, wenn beide Farbformate identisch sind, sonst false. Wird != verwendet, liefert die Funktion true zurück, wenn die beiden Farbformate unterschiedlich sind, sonst true.
bool ppl7::grafix::operator!= ( RGBFormat::Identifier  r1,
const RGBFormat &  r2 
)
Beschreibung:
Mit dem Operatoren != und == können zwei Farbwerte miteinander verglichen werden.
Parameter
r1Erstes Farbformat. Kenn entweder eine andere RGBFormat-Klasse sein, oder ein Wert aus der Enumeration RGBFormat::Identifier
r2Zweites Farbformat. Kenn entweder eine andere RGBFormat-Klasse sein, oder ein Wert aus der Enumeration RGBFormat::Identifier
Rückgabe
Wird == verwendet, liefert die Funktion true zurück, wenn beide Farbformate identisch sind, sonst false. Wird != verwendet, liefert die Funktion true zurück, wenn die beiden Farbformate unterschiedlich sind, sonst true.
const Size ppl7::grafix::operator* ( const Size &  size,
double  factor 
)
const Size ppl7::grafix::operator* ( double  factor,
const Size &  size 
)
const Point3D ppl7::grafix::operator* ( const Point3D &  point,
double  factor 
)
const Point3D ppl7::grafix::operator* ( double  factor,
const Point3D &  point 
)
const Point ppl7::grafix::operator* ( const Point &  point,
double  factor 
)
const Point ppl7::grafix::operator* ( double  factor,
const Point &  point 
)
const Color ppl7::grafix::operator* ( const Color &  color,
float  factor 
)
Beschreibung:
Mit diesem Operator wird die angegebene Farbe color mit dem Faktor factor multipliziert und das Ergebnis als neuer Farbwert zurückgegeben. Ein Wert größer 1.0 bewirkt, dass die Farbe heller wird, bei Werten kleiner 1,0 wird die Farbe dunkler.

Ist das Ergebnis der Multiplikation eines Farbwertes größer 255, wird er auf 255 gesetzt. Ein negativer Faktor wird zu 0.

Parameter
colorFarbwert
factorMultiplikations-Faktor
Rückgabe
Neuer Farbwert
const Color ppl7::grafix::operator* ( float  factor,
const Color &  color 
)
Beschreibung:
Mit diesem Operator wird die angegebene Farbe color mit dem Faktor factor multipliziert und das Ergebnis als neuer Farbwert zurückgegeben. Ein Wert größer 1.0 bewirkt, dass die Farbe heller wird, bei Werten kleiner 1,0 wird die Farbe dunkler.

Ist das Ergebnis der Multiplikation eines Farbwertes größer 255, wird er auf 255 gesetzt. Ein negativer Faktor wird zu 0.

Parameter
factorMultiplikations-Faktor
colorFarbwert
Rückgabe
Neuer Farbwert
const Size ppl7::grafix::operator+ ( const Size &  s1,
const Size &  s2 
)
const Point3D ppl7::grafix::operator+ ( const Point3D &  p1,
const Point3D &  p2 
)
const Point ppl7::grafix::operator+ ( const Point &  p1,
const Point &  p2 
)
const Color ppl7::grafix::operator+ ( const Color &  color1,
const Color &  color2 
)
const Size ppl7::grafix::operator- ( const Size &  s1,
const Size &  s2 
)
const Size ppl7::grafix::operator- ( const Size &  size)
const Point3D ppl7::grafix::operator- ( const Point3D &  p1,
const Point3D &  p2 
)
const Point3D ppl7::grafix::operator- ( const Point3D &  point)
const Point ppl7::grafix::operator- ( const Point &  p1,
const Point &  p2 
)
const Point ppl7::grafix::operator- ( const Point &  point)
const Size ppl7::grafix::operator/ ( const Size &  size,
double  divisor 
)
const Point3D ppl7::grafix::operator/ ( const Point3D &  point,
double  divisor 
)
const Point ppl7::grafix::operator/ ( const Point &  point,
double  divisor 
)
std::ostream & ppl7::grafix::operator<< ( std::ostream &  s,
const Color &  c 
)
bool ppl7::grafix::operator== ( const Size &  s1,
const Size &  s2 
)
bool ppl7::grafix::operator== ( const Font &  f1,
const Font &  f2 
)
bool ppl7::grafix::operator== ( const Point3D &  p1,
const Point3D &  p2 
)
bool ppl7::grafix::operator== ( const Point &  p1,
const Point &  p2 
)
bool ppl7::grafix::operator== ( const Rect &  r1,
const Rect &  r2 
)
bool ppl7::grafix::operator== ( const RGBFormat &  r1,
const RGBFormat &  r2 
)
Beschreibung:
Mit dem Operatoren != und == können zwei Farbwerte miteinander verglichen werden.
Parameter
r1Erstes Farbformat. Kenn entweder eine andere RGBFormat-Klasse sein, oder ein Wert aus der Enumeration RGBFormat::Identifier
r2Zweites Farbformat. Kenn entweder eine andere RGBFormat-Klasse sein, oder ein Wert aus der Enumeration RGBFormat::Identifier
Rückgabe
Wird == verwendet, liefert die Funktion true zurück, wenn beide Farbformate identisch sind, sonst false. Wird != verwendet, liefert die Funktion true zurück, wenn die beiden Farbformate unterschiedlich sind, sonst true.
bool ppl7::grafix::operator== ( const RGBFormat &  r1,
RGBFormat::Identifier  r2 
)
Beschreibung:
Mit dem Operatoren != und == können zwei Farbwerte miteinander verglichen werden.
Parameter
r1Erstes Farbformat. Kenn entweder eine andere RGBFormat-Klasse sein, oder ein Wert aus der Enumeration RGBFormat::Identifier
r2Zweites Farbformat. Kenn entweder eine andere RGBFormat-Klasse sein, oder ein Wert aus der Enumeration RGBFormat::Identifier
Rückgabe
Wird == verwendet, liefert die Funktion true zurück, wenn beide Farbformate identisch sind, sonst false. Wird != verwendet, liefert die Funktion true zurück, wenn die beiden Farbformate unterschiedlich sind, sonst true.
bool ppl7::grafix::operator== ( RGBFormat::Identifier  r1,
const RGBFormat &  r2 
)
Beschreibung:
Mit dem Operatoren != und == können zwei Farbwerte miteinander verglichen werden.
Parameter
r1Erstes Farbformat. Kenn entweder eine andere RGBFormat-Klasse sein, oder ein Wert aus der Enumeration RGBFormat::Identifier
r2Zweites Farbformat. Kenn entweder eine andere RGBFormat-Klasse sein, oder ein Wert aus der Enumeration RGBFormat::Identifier
Rückgabe
Wird == verwendet, liefert die Funktion true zurück, wenn beide Farbformate identisch sind, sonst false. Wird != verwendet, liefert die Funktion true zurück, wenn die beiden Farbformate unterschiedlich sind, sonst true.
ppl7::grafix::PPL7EXCEPTION ( UnknownColorFormatException  ,
Exception   
)
ppl7::grafix::PPL7EXCEPTION ( UnsupportedColorFormatException  ,
Exception   
)
ppl7::grafix::PPL7EXCEPTION ( NoGrafixEngineException  ,
Exception   
)
ppl7::grafix::PPL7EXCEPTION ( EmptyDrawableException  ,
Exception   
)
ppl7::grafix::PPL7EXCEPTION ( UnknownBltMethodException  ,
Exception   
)
ppl7::grafix::PPL7EXCEPTION ( DuplicateGrafixEngineException  ,
Exception   
)
ppl7::grafix::PPL7EXCEPTION ( FunctionUnavailableException  ,
Exception   
)
ppl7::grafix::PPL7EXCEPTION ( InvalidImageSizeException  ,
Exception   
)
ppl7::grafix::PPL7EXCEPTION ( UnknownImageFormatException  ,
Exception   
)
ppl7::grafix::PPL7EXCEPTION ( FontEngineInitializationException  ,
Exception   
)
ppl7::grafix::PPL7EXCEPTION ( FontEngineUninitializedException  ,
Exception   
)
ppl7::grafix::PPL7EXCEPTION ( InvalidFontException  ,
Exception   
)
ppl7::grafix::PPL7EXCEPTION ( NoSuitableFontEngineException  ,
Exception   
)
ppl7::grafix::PPL7EXCEPTION ( FontNotFoundException  ,
Exception   
)
ppl7::grafix::PPL7EXCEPTION ( InvalidFontEngineException  ,
Exception   
)
ppl7::grafix::PPL7EXCEPTION ( InvalidSpriteException  ,
Exception   
)
ppl7::grafix::PPL7EXCEPTION ( InvalidFontFormatException  ,
Exception   
)
ppl7::grafix::PPL7EXCEPTION ( InvalidFontFaceException  ,
Exception   
)
ppl7::grafix::PPL7EXCEPTION ( UnknownFontFaceException  ,
Exception   
)
ppl7::grafix::skip_input_data ( j_decompress_ptr  cinfo,
long  num_bytes 
)
ppl7::grafix::term_destination ( j_compress_ptr  cinfo)
ppl7::grafix::term_source ( j_decompress_ptr  cinfo)

Variablen-Dokumentation

char * ppl7::grafix::alphatab =NULL
int ppl7::grafix::delayTime
int ppl7::grafix::disposal
int ppl7::grafix::inputFlag
int ppl7::grafix::transparent