Pencil2D  ff90c0872e88be3bf81c548cd60f01983012ec49
Pencil2D is an animation software for both bitmap and vector graphics. It is free, multi-platform, and open source.
 All Classes Functions
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
BitmapImage Class Reference
+ Inheritance diagram for BitmapImage:

Public Member Functions

 BitmapImage (const BitmapImage &)
 
 BitmapImage (const QRect &boundaries, const QColor &colour)
 
 BitmapImage (const QRect &boundaries, const QImage &image)
 
 BitmapImage (const QString &path, const QPoint &topLeft)
 
BitmapImageoperator= (const BitmapImage &a)
 
void paintImage (QPainter &painter)
 
QImage * image ()
 
void setImage (QImage *pImg)
 
BitmapImage copy ()
 
BitmapImage copy (QRect rectangle)
 
void paste (BitmapImage *)
 
void paste (BitmapImage *, QPainter::CompositionMode cm)
 
void add (BitmapImage *)
 
void compareAlpha (BitmapImage *)
 
void moveTopLeft (QPoint point)
 
void moveTopLeft (QPointF point)
 
void transform (QRect rectangle, bool smoothTransform)
 
void transform (QRectF rectangle, bool smoothTransform)
 
BitmapImage transformed (QRect selection, QTransform transform, bool smoothTransform)
 
BitmapImage transformed (QRect rectangle, bool smoothTransform)
 
BitmapImage transformed (QRectF rectangle, bool smoothTransform)
 
bool contains (QPoint P)
 
bool contains (QPointF P)
 
void extend (QPoint P)
 
void extend (QRect rectangle)
 
QRgb pixel (int x, int y)
 
QRgb pixel (QPoint P)
 
void setPixel (int x, int y, QRgb colour)
 
void setPixel (QPoint P, QRgb colour)
 
QRgb constScanLine (int x, int y)
 
void scanLine (int x, int y, QRgb colour)
 
void clear ()
 
void clear (QRect rectangle)
 
void clear (QRectF rectangle)
 
void drawLine (QPointF P1, QPointF P2, QPen pen, QPainter::CompositionMode cm, bool antialiasing)
 
void drawRect (QRectF rectangle, QPen pen, QBrush brush, QPainter::CompositionMode cm, bool antialiasing)
 
void drawEllipse (QRectF rectangle, QPen pen, QBrush brush, QPainter::CompositionMode cm, bool antialiasing)
 
void drawPath (QPainterPath path, QPen pen, QBrush brush, QPainter::CompositionMode cm, bool antialiasing)
 
QPoint topLeft ()
 
QPoint topRight ()
 
QPoint bottomLeft ()
 
QPoint bottomRight ()
 
int left ()
 
int right ()
 
int top ()
 
int bottom ()
 
int width ()
 
int height ()
 
QRect & bounds ()
 
- Public Member Functions inherited from KeyFrame
int pos ()
 
void setPos (int position)
 
int length ()
 
void setLength (int len)
 
void modification ()
 
void setModified (bool b)
 
bool isModified ()
 
void setSelected (bool b)
 
bool isSelected ()
 
QString fileName ()
 
void setFileName (QString strFileName)
 
void addEventListener (KeyFrameEventListener *)
 
void removeEventListner (KeyFrameEventListener *)
 
virtual bool isNull ()
 

Static Public Member Functions

static int pow (int)
 
static bool compareColor (QRgb color1, QRgb color2, int tolerance)
 
static void floodFill (BitmapImage *targetImage, QRect cameraRect, QPoint point, QRgb oldColor, QRgb newColor, int tolerance)
 

Private Attributes

std::shared_ptr< QImage > mImage
 
QRect mBounds
 
bool mExtendable = true
 

Detailed Description

Definition at line 26 of file bitmapimage.h.


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