version 3.3

VRS::ImageGlyph Class Reference

DEPRECATED: class for a bitmap glyph. More...

#include <vrs/text/deprecated/font.h>

Inheritance diagram for VRS::ImageGlyph:

VRS::Glyph VRS::SharedObj VRS::Visitable

List of all members.

Public Member Functions

 ImageGlyph (FT_GlyphSlot *slot, double resolution)
 Creates a memory bitmap from the freetype glyph.
int width () const
 Returns the width of the contained image.
int height () const
 Returns the height of the contained image.
int pitch () const
 Returns the pitch of the contained image.
MemoryImagegetAlphaImage () const
 Returns an image containing the glyph.
ImageTexture2DgetTexture () const
 Returns a texture with the glyph as image.
ImageTexture2DgetHaloedTexture (double haloeSize) const
 Like getTexture, but the glyph will have a haloe around it.
unsigned char * getBitmapImage () const
 Returns a bitwise stored image (one bit = one pixel).
Vector getLowerLeftCorner () const
 Returns the difference between the origin and the lower left corner of the glyph (in pixels).
virtual Bounds boundingBox () const
 VRS_TYPEINFO (ImageGlyph, Glyph)


Detailed Description

DEPRECATED: class for a bitmap glyph.

Constructor & Destructor Documentation

VRS::ImageGlyph::ImageGlyph ( FT_GlyphSlot slot,
double  resolution 
)

Creates a memory bitmap from the freetype glyph.


Member Function Documentation

int VRS::ImageGlyph::width (  )  const

Returns the width of the contained image.

int VRS::ImageGlyph::height (  )  const

Returns the height of the contained image.

int VRS::ImageGlyph::pitch (  )  const

Returns the pitch of the contained image.

MemoryImage* VRS::ImageGlyph::getAlphaImage (  )  const

Returns an image containing the glyph.

Returns 0, if the image is empty (e.g. space) as all other image related get methods do.

ImageTexture2D* VRS::ImageGlyph::getTexture (  )  const

Returns a texture with the glyph as image.

ImageTexture2D* VRS::ImageGlyph::getHaloedTexture ( double  haloeSize  )  const

Like getTexture, but the glyph will have a haloe around it.

The haloe range is specified in texture pixels (square with 2*haloeSize edge length)

unsigned char* VRS::ImageGlyph::getBitmapImage (  )  const

Returns a bitwise stored image (one bit = one pixel).

Vector VRS::ImageGlyph::getLowerLeftCorner (  )  const

Returns the difference between the origin and the lower left corner of the glyph (in pixels).

Consider the glyph is a p. The origin (0,0,0) obviously differs from the lower left corner of bitmap to render.

virtual Bounds VRS::ImageGlyph::boundingBox (  )  const [virtual]

Implements VRS::Glyph.

VRS::ImageGlyph::VRS_TYPEINFO ( ImageGlyph  ,
Glyph   
)


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

Generated on Mon May 21 06:00:30 2012 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact