30 #include <wx/bitmap.h> 54 BITMAP_BASE(
const wxPoint& pos = wxPoint( 0, 0 ) );
129 return wxSize( 0, 0 );
149 void DrawBitmap( wxDC* aDC,
const wxPoint& aPos );
195 void SaveData( wxArrayString& aPngStrings )
const;
214 void Mirror(
bool aVertically );
221 void Rotate(
bool aRotateCCW );
249 #endif // BITMAP_BASE_H double GetScalingFactor() const
This scaling factor depends on m_pixelSizeIu and m_scale.
An abstract class from which implementation specific LINE_READERs may be derived to read single lines...
BITMAP_BASE(const wxPoint &pos=wxPoint(0, 0))
The Cairo implementation of the graphics abstraction layer.
bool SaveData(FILE *aFile) const
Write the bitmap data to aFile.
void SetScale(double aScale)
const wxImage * GetImageData() const
void Mirror(bool aVertically)
Mirror image vertically (i.e.
const EDA_RECT GetBoundingBox() const
Return the orthogonal, bounding box of this object for display purposes.
This class handle bitmap images in KiCad.
void SetBitmap(wxBitmap *aBitMap)
void SetPixelSizeIu(double aPixSize)
double GetPixelSizeIu() const
Base plotter engine class.
void ImportData(BITMAP_BASE *aItem)
Copy aItem image to this object and update m_bitmap.
void PlotImage(PLOTTER *aPlotter, const wxPoint &aPos, KIGFX::COLOR4D aDefaultColor, int aDefaultPensize)
Plot bitmap on plotter.
Handle the component boundary box.
bool LoadData(LINE_READER &aLine, wxString &aErrorMsg)
Load an image data saved by SaveData.
wxSize GetSizePixels() const
void DrawBitmap(wxDC *aDC, const wxPoint &aPos)
bool ReadImageFile(const wxString &aFullFilename)
Reads and stores in memory an image file.
void Rotate(bool aRotateCCW)
Rotate image CW or CCW.
void SetImage(wxImage *aImage)
A color representation with 4 components: red, green, blue, alpha.