|
| FreeTypeChar (FT_Face ftFace, UTF8String::CodePoint codePoint) |
| Constructor. More...
|
|
| FreeTypeChar (const FreeTypeChar &c) |
| Copy Constructor. More...
|
|
| FreeTypeChar (std::fstream *fileStream) |
| Constructor from a file Stream. More...
|
|
| FreeTypeChar (FreeTypeChar &&c) |
| move Constructor More...
|
|
| ~FreeTypeChar () |
|
FreeTypeChar & | operator= (const FreeTypeChar &c) |
| Copy operator. More...
|
|
FreeTypeChar & | operator= (FreeTypeChar &&c) |
| move operator More...
|
|
float | getHoriBearingX () const |
| return the X coordinate of the horizontal bearing of this glyph More...
|
|
float | getHoriBearingY () const |
| return the Y coordinate of the horizontal bearing of this glyph More...
|
|
const Math::vec2f & | getHoriBearing () const |
| return the the horizontal bearing of this glyph More...
|
|
float | getHoriOffsetY () const |
| Get the Y coordinate of the Horizontal offset. More...
|
|
float | getHoriAdvance () const |
| Get the advance of this glyph when used horizontally. More...
|
|
UTF8String::CodePoint | getCodePoint () const |
| get the code point of this character More...
|
|
bool | read (std::fstream *fileStream) |
| read from a file stream More...
|
|
bool | write (std::fstream *fileStream) const |
| write this object as binary into a file stream More...
|
|
template<typename C > |
| _Image (const _Image< C > &image) |
| copy constructor with an another storage type More...
|
|
| _Image (Format format=Format::RGB) |
| Empty constructor, create an image unallocated of size (0:0) More...
|
|
| _Image (const Math::Vec2< Size > &size, Format format=Format::RGB) |
| Constructor to create an initialized image of specified size. More...
|
|
| _Image (std::fstream *fileStream) |
| create a new image data from a file stream. More...
|
|
| _Image (const T *data, const Math::Vec2< Size > &size, LoadingFormat loadingFormat=LoadingFormat::RGB, bool invertY=false, size_t stride=0) |
| Constructor to create an image from a data buffer. More...
|
|
| _Image (const _Image< T > &image) |
| copy constructor More...
|
|
| _Image (_Image< T > &&image) |
| move constructor More...
|
|
| ~_Image () |
|
const Math::Vec2< Size > & | getSize () const |
| get the actual size (width:height) of the image More...
|
|
Size | getWidth () const |
| get the actual width of the image More...
|
|
Size | getHeight () const |
| get the actual height of the image More...
|
|
size_t | getNbPixels () const |
| get the number of pixels of this image More...
|
|
void | clear (const Math::Vec2< Size > &size) |
| reset this image with a new size. More...
|
|
void | clear (const Math::Vec2< Size > &size, Format format) |
| reset this image with a new size and a new format More...
|
|
void | setDatas (const T *data, const Math::Vec2< Size > &size, LoadingFormat loadingFormat=LoadingFormat::RGB, bool invertY=false, size_t stride=0) |
| set the data from an another data buffer. More...
|
|
_Image< T > * | createMipmap () |
| create a new image from this one with a size of width / 2 and height / 2 More...
|
|
const T * | getDatas () const |
| get the data buffer of this image More...
|
|
T * | getDatas () |
| get the data buffer of this image More...
|
|
const T * | getDatas (Size x, Size y) const |
| get the data buffer of this image starting with the selected pixel More...
|
|
T * | getDatas (Size x, Size y) |
| get the data buffer of this image starting with the selected pixel More...
|
|
const T * | getPixel (Size x, Size y) const |
| get a pixel from this image More...
|
|
T * | getPixel (Size x, Size y) |
| get a pixel from this image More...
|
|
size_t | getDataOffset (Size x, Size y) const |
| get the offset of pixel from the beginning of the data More...
|
|
void | setPixel (Size x, Size y, const T *p) |
| set a pixel inside this image More...
|
|
template<typename C > |
_Image< T > & | operator= (const _Image< C > &image) |
| copy operator with another type More...
|
|
_Image< T > & | operator= (const _Image< T > &image) |
| copy operator More...
|
|
_Image< T > & | operator= (_Image< T > &&image) |
| move operator More...
|
|
bool | read (std::fstream *fileStream) |
| read from a file stream More...
|
|
bool | write (std::fstream *fileStream) const |
| write this object as binary into a file stream More...
|
|
Format | getFormat () const |
| get the format of this image More...
|
|
unsigned int | getNbComponents () const |
| get the number of components per pixels of this image. More...
|
|
_Image< T > | toFormat (Format newFormat, ConversionMode conversionMode=ConversionMode::Luminance) const |
| Create a new Image from this one with a new format. More...
|
|
template<typename C , typename InterFunc > |
size_t | computeInterpolation (const GradientHorizontal< C, InterFunc > &gradient, C **buffer, const Rectangle &rectangle, Math::Rectangle< Size > *clampedRectangle) const |
| Compute the interpolation for horizontal gradient. More...
|
|
template<typename C , typename InterFunc > |
size_t | computeInterpolation (const GradientVertical< C, InterFunc > &gradient, C **buffer, const Rectangle &rectangle, Math::Rectangle< Size > *clampedRectangle) const |
| Compute the interpolation for vertical gradient. More...
|
|
template<typename C , typename InterFunc > |
size_t | computeInterpolation (const GradientLinear< C, InterFunc > &gradient, C **buffer, const Rectangle &rectangle, Math::Rectangle< Size > *clampedRectangle) const |
| Compute the interpolation for Linear gradient. More...
|
|
template<typename C , typename InterFunc > |
size_t | computeInterpolation (const GradientRadial< C, InterFunc > &gradient, C **buffer, const Rectangle &rectangle, Math::Rectangle< Size > *clampedRectangle) const |
| Compute the interpolation for Radial gradient. More...
|
|
template<typename ThreshFunc > |
void | threshold (const ColorRGBA< T > &colorTrue, const ColorRGBA< T > &colorFalse, const ThreshFunc &threshFunc) |
| Threshold the image with a specified functor. More...
|
|
void | threshold (const ColorRGBA< T > &colorOver, const ColorRGBA< T > &colorUnder, const ColorRGBA< T > &limit) |
| Threshold the image with a specified threshold. More...
|
|
template<typename BlendFunc = BlendingFunc::Normal> |
void | drawLine (const LineF &l, const ColorR< T > &color, unsigned int thickness=1, const BlendFunc &blendFunc=BlendingFunc::Normal()) |
| draw an anti aliased line from point p1 to point p2 More...
|
|
template<typename BlendFunc = BlendingFunc::Normal> |
void | drawLine (const LineF &l, const ColorRGB< T > &color, unsigned int thickness=1, const BlendFunc &blendFunc=BlendingFunc::Normal()) |
| draw an anti aliased line from point p1 to point p2 More...
|
|
template<typename BlendFunc = BlendingFunc::Normal> |
void | drawLine (const LineF &l, const ColorRGBA< T > &color, unsigned int thickness=1, const BlendFunc &blendFunc=BlendingFunc::Normal()) |
| draw an anti aliased line from point p1 to point p2 More...
|
|
template<typename ColorFunc , typename BlendFunc = BlendingFunc::Normal> |
void | drawLineFunctor (const LineF &l, ColorFunc &colorFunc, unsigned int thickness=1, const BlendFunc &blendFunc=BlendingFunc::Normal()) |
| draw an anti aliased line from point p1 to point p2 More...
|
|
template<typename Functor > |
void | setPixels (Functor &functor, const Rectangle &rectangle) |
| Set a functor to each pixels in the rectangle of this image. More...
|
|
template<typename Functor > |
void | setPixels (Functor &functor) |
| Set a functor to each pixels of this image. More...
|
|
template<typename BlendFunc = BlendingFunc::Normal> |
void | drawRectangle (const Rectangle &rectangle, const ColorR< T > &color, const BlendFunc &blendFunc=BlendingFunc::Normal()) |
| draw a rectangle inside this image. More...
|
|
template<typename BlendFunc = BlendingFunc::Normal> |
void | drawRectangle (const Rectangle &rectangle, const ColorRGB< T > &color, const BlendFunc &blendFunc=BlendingFunc::Normal()) |
| draw a rectangle inside this image. More...
|
|
template<typename BlendFunc = BlendingFunc::Normal> |
void | drawRectangle (const Rectangle &rectangle, const ColorRGBA< T > &color, const BlendFunc &blendFunc=BlendingFunc::Normal()) |
| draw a rectangle inside this image. More...
|
|
template<typename C , typename InterFunc > |
void | drawRectangle (const Rectangle &rectangle, const GradientHorizontal< C, InterFunc > &gradient) |
| draw a rectangle inside this image. More...
|
|
template<typename C , typename InterFunc , typename BlendFunc = BlendingFunc::Normal> |
void | drawRectangle (const Rectangle &rectangle, const GradientLinear< C, InterFunc > &gradient, const BlendFunc &blendFunc=BlendingFunc::Normal()) |
| draw a rectangle inside this image. More...
|
|
template<typename C , typename InterFunc , typename BlendFunc = BlendingFunc::Normal> |
void | drawRectangle (const Rectangle &rectangle, const GradientRadial< C, InterFunc > &gradient, const BlendFunc &blendFunc=BlendingFunc::Normal()) |
| draw a rectangle inside this image. More...
|
|
template<typename C , typename InterFunc , typename BlendFunc > |
void | drawRectangle (const Rectangle &rectangle, const GradientHorizontal< C, InterFunc > &gradient, const BlendFunc &blendFunc) |
| draw a rectangle inside this image. More...
|
|
template<typename C , typename InterFunc , typename BlendFunc = BlendingFunc::Normal> |
void | drawRectangle (const Rectangle &rectangle, const GradientVertical< C, InterFunc > &gradient, const BlendFunc &blendFunc=BlendingFunc::Normal()) |
| draw a rectangle inside this image. More...
|
|
template<typename ColorFunc , typename BlendFunc = BlendingFunc::Normal> |
void | drawRectangleFunctor (const Rectangle &rectangle, ColorFunc &colorFunc, const BlendFunc &blendFunc=BlendingFunc::Normal()) |
| draw a rectangle inside this image. More...
|
|
void | fillImage (const T *color) |
| fill the complete image with a color. param color pointer to a color with the same number of component of this image More...
|
|
void | fillImage (const T *color, const Rectangle &rectangle) |
| fill the complete image with a color. More...
|
|
void | fillImage (const ColorR< T > &color) |
| fill the complete image with a color. More...
|
|
void | fillImage (const ColorRGB< T > &color) |
| fill the complete image with a color. More...
|
|
void | fillImage (const ColorRGBA< T > &color) |
| fill the complete image with a color. More...
|
|
void | fillImage (const ColorR< T > &color, const Rectangle &rectangle) |
| fill the complete image with a color. More...
|
|
void | fillImage (const ColorRGB< T > &color, const Rectangle &rectangle) |
| fill the complete image with a color. More...
|
|
void | fillImage (const ColorRGBA< T > &color, const Rectangle &rectangle) |
| fill the complete image with a color. More...
|
|
template<typename C , typename InterFunc > |
void | fillImage (const GradientHorizontal< C, InterFunc > &gradient, const Rectangle &rectangle) |
| fill the complete image with a horizontal gradient. More...
|
|
template<typename C , typename InterFunc > |
void | fillImage (const GradientVertical< C, InterFunc > &gradient, const Rectangle &rectangle) |
| fill the complete image with a vertical gradient. More...
|
|
template<typename C , typename InterFunc > |
void | fillImage (const GradientLinear< C, InterFunc > &gradient, const Rectangle &rectangle) |
| fill the complete image with a Linear gradient. More...
|
|
template<typename C , typename InterFunc > |
void | fillImage (const GradientRadial< C, InterFunc > &gradient, const Rectangle &rectangle) |
| fill the complete image with a Radial gradient. More...
|
|
void | fillImage (const Point &point, const _Image< T > &image) |
| fill an another image into this one (no blending will be applied) More...
|
|
void | fillImage (const Point &point, const Rectangle &rectangle, const _Image< T > &image) |
| fill an another image into this one (no blending will be applied) More...
|
|
void | drawImage (const Point &point, const _Image< T > &image) |
| draw an another image into this one More...
|
|
void | drawImage (const Point &point, const Rectangle &rectangle, const _Image< T > &image) |
| draw an another image into this one More...
|
|
template<typename BlendFunc = BlendingFunc::Normal> |
void | drawImage (const Point &point, const Rectangle &rectangle, const _Image< T > &image, const BlendFunc &blendFunc=BlendingFunc::Normal()) |
| draw an another image into this one with a custom blending function More...
|
|
template<typename BlendFunc = BlendingFunc::Normal> |
void | drawImage (const Point &point, const ColorR< T > &color, const _Image< T > &maskImage, const BlendFunc &blendFunc=BlendingFunc::Normal()) |
| draw a color to this image using a mask More...
|
|
template<typename BlendFunc = BlendingFunc::Normal> |
void | drawImage (const Point &point, const ColorRGB< T > &color, const _Image< T > &maskImage, const BlendFunc &blendFunc=BlendingFunc::Normal()) |
| draw a color to this image using a mask More...
|
|
template<typename BlendFunc = BlendingFunc::Normal> |
void | drawImage (const Point &point, const ColorRGBA< T > &color, const _Image< T > &maskImage, const BlendFunc &blendFunc=BlendingFunc::Normal()) |
| draw a color to this image using a mask More...
|
|
template<typename BlendFunc = BlendingFunc::Normal> |
void | drawImage (const Point &point, const ColorR< T > &color, const Rectangle &rectangle, const _Image< T > &maskImage, const BlendFunc &blendFunc=BlendingFunc::Normal()) |
| draw a color to this image using a mask and a rectangle to know the part of the mask to use. More...
|
|
template<typename BlendFunc = BlendingFunc::Normal> |
void | drawImage (const Point &point, const ColorRGB< T > &color, const Rectangle &rectangle, const _Image< T > &maskImage, const BlendFunc &blendFunc=BlendingFunc::Normal()) |
| draw a color to this image using a mask and a rectangle to know the part of the mask to use. More...
|
|
template<typename BlendFunc = BlendingFunc::Normal> |
void | drawImage (const Point &point, const ColorRGBA< T > &color, const Rectangle &rectangle, const _Image< T > &maskImage, const BlendFunc &blendFunc=BlendingFunc::Normal()) |
| draw a color to this image using a mask and a rectangle to know the part of the mask to use. More...
|
|
template<typename ColorFunc , typename BlendFunc = BlendingFunc::Normal> |
void | drawImageFunctor (const Point &point, ColorFunc &colorFunc, const Rectangle &rectangle, const _Image< T > &maskImage, const BlendFunc &blendFunc=BlendingFunc::Normal()) |
| draw a color to this image using a mask and a rectangle to know the part of the mask to use. More...
|
|
void | drawImage (const Point &point, const _Image< T > &image, const _Image< T > &maskImage) |
| draw an another image into this one with a mask image More...
|
|
void | drawImage (const Point &point, const _Image< T > &image, const Point &maskPoint, const _Image< T > &maskImage) |
| draw an another image into this one with a mask image More...
|
|
template<typename BlendFunc = BlendingFunc::Normal> |
void | drawImage (const Point &point, const Rectangle &rectangle, const _Image< T > &image, const Point &maskPoint, const _Image< T > &maskImage, const BlendFunc &blendFunc=BlendingFunc::Normal()) |
| draw an another image into this one with a mask image More...
|
|
template<typename ColorFunc , typename BlendFunc = BlendingFunc::Normal> |
void | drawStrokeFunctor (const Point &point, const _Image< T > &image, unsigned int thickness, ColorFunc &colorFunc, StrokeType strokeType=StrokeType::Middle, const BlendFunc &blendFunc=BlendingFunc::Normal()) |
| Stroke the image with a specified color functor. More...
|
|
template<typename BlendFunc = BlendingFunc::Normal> |
void | drawStroke (const Point &point, const _Image< T > &image, unsigned int thickness, const ColorR< T > &color, StrokeType strokeType=StrokeType::Middle, const BlendFunc &blendFunc=BlendingFunc::Normal()) |
| Stroke the image with a specified color. More...
|
|
template<typename BlendFunc = BlendingFunc::Normal> |
void | drawStroke (const Point &point, const _Image< T > &image, unsigned int thickness, const ColorRGB< T > &color, StrokeType strokeType=StrokeType::Middle, const BlendFunc &blendFunc=BlendingFunc::Normal()) |
| Stroke the image with a specified color. More...
|
|
template<typename BlendFunc = BlendingFunc::Normal> |
void | drawStroke (const Point &point, const _Image< T > &image, unsigned int thickness, const ColorRGBA< T > &color, StrokeType strokeType=StrokeType::Middle, const BlendFunc &blendFunc=BlendingFunc::Normal()) |
| Stroke the image with a specified color. More...
|
|
template<typename BlendFunc = BlendingFunc::Normal> |
void | drawBezierCurve (const PointF &p0, const PointF &p1, const PointF p2, const PointF &p3, unsigned int thickness, ColorR< T > &color, const BlendFunc &blendFunc=BlendingFunc::Normal()) |
| Draw a Cubic Bezier curve. More...
|
|
template<typename BlendFunc = BlendingFunc::Normal> |
void | drawBezierCurve (const PointF &p0, const PointF &p1, const PointF p2, const PointF &p3, unsigned int thickness, ColorRGB< T > &color, const BlendFunc &blendFunc=BlendingFunc::Normal()) |
|
template<typename BlendFunc = BlendingFunc::Normal> |
void | drawBezierCurve (const PointF &p0, const PointF &p1, const PointF p2, const PointF &p3, unsigned int thickness, ColorRGBA< T > &color, const BlendFunc &blendFunc=BlendingFunc::Normal()) |
|
template<typename ColorFunc , typename BlendFunc = BlendingFunc::Normal> |
void | drawGraphValuesFunctor (const Vector< Math::Vec2< float >> &values, const Rectangle &rectangle, ColorFunc &colorFunc, BlendFunc &blendFunc=BlendingFunc::Normal()) |
| draw points (x,y) as a graph inside a rectangle More...
|
|
template<typename F , int N> |
_Image< T > | applyFilter (const F(&filter)[N], ConvolutionMode convolutionMode=ConvolutionMode::ExtendedSize, const ColorRGBA< T > &color=ColorRGBA< T >::null) const |
| apply a symmetrical convolution filter (Gaussian blur for example) More...
|
|
template<typename F > |
_Image< T > | applyFilter (const F *filter, size_t size, ConvolutionMode convolutionMode=ConvolutionMode::ExtendedSize, const ColorRGBA< T > &color=ColorRGBA< T >::null) const |
| apply a symmetrical convolution filter (Gaussian blur for example) More...
|
|
_Image< T > | applyGaussianBlur (size_t radius, ConvolutionMode convolutionMode=ConvolutionMode::ExtendedSize, const ColorRGBA< T > &color=ColorRGBA< T >::null) const |
| apply a Gaussian Blur Filter More...
|
|
Math::Rectangle< Size > | clampRectangle (const Rectangle &rectangle) const |
| Clamp a rectangle inside the image. More...
|
|
template<typename BlendFunc = BlendingFunc::Normal> |
void | drawRectangleRounded (const Rectangle &rectangle, unsigned int radius, const ColorR< T > &color, BlendFunc &blendFunc=BlendingFunc::Normal()) |
| Draw a rounded rectangle with a color. More...
|
|
template<typename BlendFunc = BlendingFunc::Normal> |
void | drawRectangleRounded (const Rectangle &rectangle, unsigned int radius, const ColorRGB< T > &color, BlendFunc &blendFunc=BlendingFunc::Normal()) |
| Draw a rounded rectangle with a color. More...
|
|
template<typename BlendFunc = BlendingFunc::Normal> |
void | drawRectangleRounded (const Rectangle &rectangle, unsigned int radius, const ColorRGBA< T > &color, BlendFunc &blendFunc=BlendingFunc::Normal()) |
| Draw a rounded rectangle with a color. More...
|
|
template<typename ColorFunc , typename BlendFunc = BlendingFunc::Normal> |
void | drawRectangleRoundedFunctor (const Rectangle &rectangle, unsigned int radius, ColorFunc &colorFunc, BlendFunc &blendFunc=BlendingFunc::Normal()) |
| Draw a rounded rectangle with a color Functor. More...
|
|
_Image< T > | resample (const Math::Vec2< Size > &newSize, ResamplingMode resamplingMode=ResamplingMode::Nearest) const |
| Resize the image with re sampling and return the new one. More...
|
|
template<typename ColorFunc , typename BlendFunc = BlendingFunc::Normal> |
void | drawPolygonFunctor (const Math::Vec2< float > *vertices, typename Vector< Math::Vec2< float >>::Size nbVertices, const Rectangle &rectangle, ColorFunc &colorFunc, BlendFunc &blendFunc=BlendingFunc::Normal()) |
| Draw a filed Polygon. More...
|
|
template<typename ColorFunc , typename BlendFunc > |
void | drawDiskFunctor (const Point &p, float radius, ColorR< T > &c, BlendFunc &blendFunc=BlendingFunc::Normal()) |
| Draw a filed Disk. More...
|
|
template<typename ColorFunc , typename BlendFunc > |
void | drawDiskFunctor (const Point &p, float radius, ColorRGB< T > &c, BlendFunc &blendFunc=BlendingFunc::Normal()) |
| Draw a filed Disk. More...
|
|
template<typename ColorFunc , typename BlendFunc > |
void | drawDiskFunctor (const Point &p, float radius, ColorRGBA< T > &c, BlendFunc &blendFunc=BlendingFunc::Normal()) |
| Draw a filed Disk. More...
|
|
template<typename ColorFunc , typename BlendFunc > |
void | drawDiskFunctor (const Point &p, float radius, ColorFunc &colorFunc, BlendFunc &blendFunc=BlendingFunc::Normal()) |
| Draw a filed Disk. More...
|
|
template<typename K > |
K | computeGaussianKernel (K *kernel, size_t size, const float &sigma) |
| compute the Vertical/Horizontal Gaussian Kernel (K : Type of Values in your Kernel ) More...
|
|
template<> |
float | getComponentMaxValue () |
|
template<> |
double | getComponentMaxValue () |
|
bool | read (std::fstream *fileStream) |
| read from a file stream More...
|
|
bool | write (std::fstream *fileStream) const |
| write this object as binary into a file stream More...
|
|