183 void SaveData( wxArrayString& aPngStrings )
const;
202 void Mirror(
bool aVertically );
209 void Rotate(
bool aRotateCCW );
This class handle bitmap images in KiCad.
void Rotate(bool aRotateCCW)
Rotate image CW or CCW.
double GetScalingFactor() const
This scaling factor depends on m_pixelSizeIu and m_scale.
bool SaveData(FILE *aFile) const
Write the bitmap data to aFile.
const wxImage * GetOriginalImageData() const
void PlotImage(PLOTTER *aPlotter, const VECTOR2I &aPos, const KIGFX::COLOR4D &aDefaultColor, int aDefaultPensize) const
Plot bitmap on plotter.
VECTOR2I GetSizePixels() const
EDA_ANGLE Rotation() const
const BOX2I GetBoundingBox() const
Return the orthogonal, bounding box of this object for display purposes.
double GetPixelSizeIu() const
void Mirror(bool aVertically)
Mirror image vertically (i.e.
wxImage * m_originalImage
void rebuildBitmap(bool aResetID=true)
void SetPixelSizeIu(double aPixSize)
void ImportData(BITMAP_BASE *aItem)
Copy aItem image to this object and update m_bitmap.
void ConvertToGreyscale()
void DrawBitmap(wxDC *aDC, const VECTOR2I &aPos)
void SetImage(wxImage *aImage)
const wxImage * GetImageData() const
bool ReadImageFile(const wxString &aFullFilename)
Reads and stores in memory an image file.
bool LoadData(LINE_READER &aLine, wxString &aErrorMsg)
Load an image data saved by SaveData.
void SetScale(double aScale)
A color representation with 4 components: red, green, blue, alpha.
An abstract class from which implementation specific LINE_READERs may be derived to read single lines...
Base plotter engine class.
The Cairo implementation of the graphics abstraction layer.