KiCad PCB EDA Suite
BITMAP_BASE Class Reference

This class handle bitmap images in KiCad. More...

#include <bitmap_base.h>

Public Member Functions

 BITMAP_BASE (const wxPoint &pos=wxPoint(0, 0))
 
 BITMAP_BASE (const BITMAP_BASE &aSchBitmap)
 
 ~BITMAP_BASE ()
 
double GetPixelSizeIu () const
 
void SetPixelSizeIu (double aPixSize)
 
wxImage * GetImageData ()
 
const wxImage * GetImageData () const
 
void SetImage (wxImage *aImage)
 
double GetScale () const
 
void SetScale (double aScale)
 
void RebuildBitmap ()
 
void SetBitmap (wxBitmap *aBitMap)
 
void ImportData (BITMAP_BASE *aItem)
 Copy aItem image to this object and update m_bitmap. More...
 
double GetScalingFactor () const
 This scaling factor depends on m_pixelSizeIu and m_scale. More...
 
wxSize GetSize () const
 
wxSize GetSizePixels () const
 
int GetPPI () const
 
const EDA_RECT GetBoundingBox () const
 Return the orthogonal, bounding box of this object for display purposes. More...
 
void DrawBitmap (wxDC *aDC, const wxPoint &aPos)
 
bool ReadImageFile (const wxString &aFullFilename)
 Reads and stores in memory an image file. More...
 
bool ReadImageFile (wxInputStream &aInStream)
 Reads and stores in memory an image file. More...
 
bool SaveData (FILE *aFile) const
 Write the bitmap data to aFile. More...
 
void SaveData (wxArrayString &aPngStrings) const
 Write the bitmap data to an array string. More...
 
bool LoadData (LINE_READER &aLine, wxString &aErrorMsg)
 Load an image data saved by SaveData. More...
 
void Mirror (bool aVertically)
 Mirror image vertically (i.e. More...
 
void Rotate (bool aRotateCCW)
 Rotate image CW or CCW. More...
 
void PlotImage (PLOTTER *aPlotter, const wxPoint &aPos, KIGFX::COLOR4D aDefaultColor, int aDefaultPensize) const
 Plot bitmap on plotter. More...
 

Private Attributes

double m_scale
 
wxImage * m_image
 
wxBitmap * m_bitmap
 
double m_pixelSizeIu
 
int m_ppi
 

Detailed Description

This class handle bitmap images in KiCad.

It is not intended to be used alone, but inside another class so all methods are protected or private. It is used in SCH_BITMAP class, DS_DRAW_ITEM_BITMAP, and possibly others in the future.

Warning
Not all plotters are able to plot a bitmap. Mainly GERBER plotters cannot.

Definition at line 51 of file bitmap_base.h.

Constructor & Destructor Documentation

◆ BITMAP_BASE() [1/2]

BITMAP_BASE::BITMAP_BASE ( const wxPoint &  pos = wxPoint( 0, 0 ))

Definition at line 45 of file bitmap_base.cpp.

46 {
47  m_scale = 1.0; // 1.0 = original bitmap size
48  m_bitmap = NULL;
49  m_image = NULL;
50  m_ppi = 300; // the bitmap definition. the default is 300PPI
51  m_pixelSizeIu = 254000.0 / m_ppi; // a pixel size value OK for bitmaps using 300 PPI
52  // for Eeschema which uses currently 254000PPI
53 }
double m_scale
Definition: bitmap_base.h:237
#define NULL
wxBitmap * m_bitmap
Definition: bitmap_base.h:240
double m_pixelSizeIu
Definition: bitmap_base.h:241
wxImage * m_image
Definition: bitmap_base.h:239

References m_bitmap, m_image, m_pixelSizeIu, m_ppi, m_scale, and NULL.

◆ BITMAP_BASE() [2/2]

BITMAP_BASE::BITMAP_BASE ( const BITMAP_BASE aSchBitmap)

Definition at line 56 of file bitmap_base.cpp.

57 {
58  m_scale = aSchBitmap.m_scale;
59  m_ppi = aSchBitmap.m_ppi;
60  m_pixelSizeIu = aSchBitmap.m_pixelSizeIu;
61 
62  m_image = nullptr;
63  m_bitmap = nullptr;
64 
65  if( aSchBitmap.m_image )
66  {
67  m_image = new wxImage( *aSchBitmap.m_image );
68  m_bitmap = new wxBitmap( *m_image );
69  }
70 }
double m_scale
Definition: bitmap_base.h:237
wxBitmap * m_bitmap
Definition: bitmap_base.h:240
double m_pixelSizeIu
Definition: bitmap_base.h:241
wxImage * m_image
Definition: bitmap_base.h:239

References m_bitmap, m_image, m_pixelSizeIu, m_ppi, and m_scale.

◆ ~BITMAP_BASE()

BITMAP_BASE::~BITMAP_BASE ( )
inline

Definition at line 58 of file bitmap_base.h.

59  {
60  delete m_bitmap;
61  delete m_image;
62  }
wxBitmap * m_bitmap
Definition: bitmap_base.h:240
wxImage * m_image
Definition: bitmap_base.h:239

References m_bitmap, and m_image.

Member Function Documentation

◆ DrawBitmap()

void BITMAP_BASE::DrawBitmap ( wxDC *  aDC,
const wxPoint &  aPos 
)

Definition at line 241 of file bitmap_base.cpp.

242 {
243  if( m_bitmap == NULL )
244  return;
245 
246  wxPoint pos = aPos;
247  wxSize size = GetSize();
248 
249  // This fixes a bug in OSX that should be fixed in the 3.0.3 version or later.
250  if( ( size.x == 0 ) || ( size.y == 0 ) )
251  return;
252 
253  // To draw the bitmap, pos is the upper left corner position
254  pos.x -= size.x / 2;
255  pos.y -= size.y / 2;
256 
257  double scale;
258  int logicalOriginX, logicalOriginY;
259  aDC->GetUserScale( &scale, &scale );
260  aDC->GetLogicalOrigin( &logicalOriginX, &logicalOriginY );
261 
262  bool useTransform = aDC->CanUseTransformMatrix();
263  wxAffineMatrix2D init_matrix = aDC->GetTransformMatrix();
264 
265  if( useTransform )
266  {
267  wxAffineMatrix2D matrix = aDC->GetTransformMatrix();
268  matrix.Translate( pos.x, pos.y );
269  matrix.Scale( GetScalingFactor(), GetScalingFactor() );
270  aDC->SetTransformMatrix( matrix );
271  pos.x = pos.y = 0;
272  }
273  else
274  {
275  aDC->SetUserScale( scale * GetScalingFactor(), scale * GetScalingFactor() );
276  aDC->SetLogicalOrigin( logicalOriginX / GetScalingFactor(),
277  logicalOriginY / GetScalingFactor() );
278 
279  pos.x = KiROUND( pos.x / GetScalingFactor() );
280  pos.y = KiROUND( pos.y / GetScalingFactor() );
281  }
282 
284  {
285  wxBitmap result( m_bitmap->ConvertToImage().ConvertToGreyscale() );
286  aDC->DrawBitmap( result, pos.x, pos.y, true );
287  }
288  else
289  {
290  aDC->DrawBitmap( *m_bitmap, pos.x, pos.y, true );
291  }
292 
293  if( useTransform )
294  aDC->SetTransformMatrix( init_matrix );
295  else
296  {
297  aDC->SetUserScale( scale, scale );
298  aDC->SetLogicalOrigin( logicalOriginX, logicalOriginY );
299  }
300 }
double GetScalingFactor() const
This scaling factor depends on m_pixelSizeIu and m_scale.
Definition: bitmap_base.h:111
#define NULL
wxSize GetSize() const
wxBitmap * m_bitmap
Definition: bitmap_base.h:240
const int scale
constexpr ret_type KiROUND(fp_type v)
Round a floating point number to an integer using "round halfway cases away from zero".
Definition: util.h:70
bool GetGRForceBlackPenState(void)
Function GetGRForceBlackPenState.
Definition: gr_basic.cpp:209

References GetGRForceBlackPenState(), GetScalingFactor(), GetSize(), KiROUND(), m_bitmap, NULL, and scale.

Referenced by DIALOG_IMAGE_EDITOR::OnRedrawPanel(), SCH_BITMAP::Print(), and DS_DRAW_ITEM_BITMAP::PrintWsItem().

◆ GetBoundingBox()

const EDA_RECT BITMAP_BASE::GetBoundingBox ( ) const

Return the orthogonal, bounding box of this object for display purposes.

This box should be an enclosing perimeter for visible components of this object, and the units should be in the pcb or schematic coordinate system. It is OK to overestimate the size by a few counts.

Definition at line 229 of file bitmap_base.cpp.

230 {
231  EDA_RECT rect;
232 
233  wxSize size = GetSize();
234 
235  rect.Inflate( size.x / 2, size.y / 2 );
236 
237  return rect;
238 }
wxSize GetSize() const
Handle the component boundary box.
Definition: eda_rect.h:42
EDA_RECT & Inflate(wxCoord dx, wxCoord dy)
Inflate the rectangle horizontally by dx and vertically by dy.
Definition: eda_rect.cpp:364

References GetSize(), and EDA_RECT::Inflate().

Referenced by BOOST_AUTO_TEST_CASE(), and SCH_BITMAP::GetBoundingBox().

◆ GetImageData() [1/2]

◆ GetImageData() [2/2]

const wxImage* BITMAP_BASE::GetImageData ( ) const
inline

Definition at line 71 of file bitmap_base.h.

71 { return m_image; }
wxImage * m_image
Definition: bitmap_base.h:239

References m_image.

◆ GetPixelSizeIu()

double BITMAP_BASE::GetPixelSizeIu ( ) const
inline

Definition at line 67 of file bitmap_base.h.

67 { return m_pixelSizeIu; }
double m_pixelSizeIu
Definition: bitmap_base.h:241

References m_pixelSizeIu.

Referenced by BOOST_AUTO_TEST_CASE().

◆ GetPPI()

int BITMAP_BASE::GetPPI ( ) const
inline

◆ GetScale()

◆ GetScalingFactor()

double BITMAP_BASE::GetScalingFactor ( ) const
inline

This scaling factor depends on m_pixelSizeIu and m_scale.

m_pixelSizeIu gives the scaling factor between a pixel size and the internal units. m_scale is an user dependent value, and gives the "zoom" value.

  • m_scale = 1.0 = original size of bitmap.
  • m_scale < 1.0 = the bitmap is drawn smaller than its original size.
  • m_scale > 1.0 = the bitmap is drawn bigger than its original size.
Returns
The scaling factor from pixel size to actual draw size.

Definition at line 111 of file bitmap_base.h.

112  {
113  return m_pixelSizeIu * m_scale;
114  }
double m_scale
Definition: bitmap_base.h:237
double m_pixelSizeIu
Definition: bitmap_base.h:241

References m_pixelSizeIu, and m_scale.

Referenced by DrawBitmap(), GetSize(), DIALOG_IMAGE_EDITOR::OnRedrawPanel(), and PlotImage().

◆ GetSize()

wxSize BITMAP_BASE::GetSize ( ) const
Returns
the actual size (in user units, not in pixels) of the image

Definition at line 303 of file bitmap_base.cpp.

304 {
305  wxSize size;
306 
307  if( m_bitmap )
308  {
309  size.x = m_bitmap->GetWidth();
310  size.y = m_bitmap->GetHeight();
311 
312  size.x = KiROUND( size.x * GetScalingFactor() );
313  size.y = KiROUND( size.y * GetScalingFactor() );
314  }
315 
316  return size;
317 }
double GetScalingFactor() const
This scaling factor depends on m_pixelSizeIu and m_scale.
Definition: bitmap_base.h:111
wxBitmap * m_bitmap
Definition: bitmap_base.h:240
constexpr ret_type KiROUND(fp_type v)
Round a floating point number to an integer using "round halfway cases away from zero".
Definition: util.h:70

References GetScalingFactor(), KiROUND(), and m_bitmap.

Referenced by BOOST_AUTO_TEST_CASE(), DrawBitmap(), GetBoundingBox(), and SCH_BITMAP::GetSize().

◆ GetSizePixels()

wxSize BITMAP_BASE::GetSizePixels ( ) const
inline
Returns
the size in pixels of the image

Definition at line 124 of file bitmap_base.h.

125  {
126  if( m_image )
127  return wxSize( m_image->GetWidth(), m_image->GetHeight() );
128  else
129  return wxSize( 0, 0 );
130  }
wxImage * m_image
Definition: bitmap_base.h:239

References m_image.

Referenced by BOOST_AUTO_TEST_CASE(), KIGFX::GL_BITMAP_CACHE::cacheBitmap(), DIALOG_IMAGE_EDITOR::CheckValues(), KIGFX::CAIRO_GAL_BASE::DrawBitmap(), and KIGFX::OPENGL_GAL::DrawBitmap().

◆ ImportData()

void BITMAP_BASE::ImportData ( BITMAP_BASE aItem)

Copy aItem image to this object and update m_bitmap.

Function ImportData Copy aItem image to me and update m_bitmap.

Definition at line 77 of file bitmap_base.cpp.

78 {
79  *m_image = *aItem->m_image;
80  *m_bitmap = *aItem->m_bitmap;
81  m_scale = aItem->m_scale;
82  m_ppi = aItem->m_ppi;
84 }
double m_scale
Definition: bitmap_base.h:237
wxBitmap * m_bitmap
Definition: bitmap_base.h:240
double m_pixelSizeIu
Definition: bitmap_base.h:241
wxImage * m_image
Definition: bitmap_base.h:239

References m_bitmap, m_image, m_pixelSizeIu, m_ppi, and m_scale.

Referenced by DIALOG_IMAGE_EDITOR::TransferToImage().

◆ LoadData()

bool BITMAP_BASE::LoadData ( LINE_READER aLine,
wxString &  aErrorMsg 
)

Load an image data saved by SaveData.

The file format must be png format in hexadecimal.

Parameters
aLinethe LINE_READER used to read the data file.
aErrorMsgDescription of the error if an error occurs while loading the png bitmap data.
Returns
true if the bitmap loaded successfully.

Definition at line 183 of file bitmap_base.cpp.

184 {
185  wxMemoryOutputStream stream;
186  char* line;
187 
188  while( true )
189  {
190  if( !aLine.ReadLine() )
191  {
192  aErrorMsg = wxT("Unexpected end of data");
193  return false;
194  }
195 
196  line = aLine.Line();
197 
198  if( strncasecmp( line, "EndData", 4 ) == 0 )
199  {
200  // all the PNG date is read.
201  // We expect here m_image and m_bitmap are void
202  m_image = new wxImage();
203  wxMemoryInputStream istream( stream );
204  m_image->LoadFile( istream, wxBITMAP_TYPE_PNG );
205  m_bitmap = new wxBitmap( *m_image );
206  break;
207  }
208 
209  // Read PNG data, stored in hexadecimal,
210  // each byte = 2 hexadecimal digits and a space between 2 bytes
211  // and put it in memory stream buffer
212  int len = strlen( line );
213 
214  for( ; len > 0; len -= 3, line += 3 )
215  {
216  int value = 0;
217 
218  if( sscanf( line, "%X", &value ) == 1 )
219  stream.PutC( (char) value );
220  else
221  break;
222  }
223  }
224 
225  return true;
226 }
char * Line() const
Return a pointer to the last line that was read in.
Definition: richio.h:117
wxBitmap * m_bitmap
Definition: bitmap_base.h:240
virtual char * ReadLine()=0
Read a line of text into the buffer and increments the line number counter.
wxImage * m_image
Definition: bitmap_base.h:239

References LINE_READER::Line(), m_bitmap, m_image, and LINE_READER::ReadLine().

Referenced by DRAWING_SHEET_READER_PARSER::readPngdata().

◆ Mirror()

void BITMAP_BASE::Mirror ( bool  aVertically)

Mirror image vertically (i.e.

relative to its horizontal X axis ) or horizontally (i.e relative to its vertical Y axis).

Parameters
aVerticallyfalse to mirror horizontally or true to mirror vertically.

Definition at line 320 of file bitmap_base.cpp.

321 {
322  if( m_image )
323  {
324  *m_image = m_image->Mirror( not aVertically );
325  RebuildBitmap();
326  }
327 }
void RebuildBitmap()
Definition: bitmap_base.h:87
wxImage * m_image
Definition: bitmap_base.h:239

References m_image, and RebuildBitmap().

Referenced by SCH_BITMAP::MirrorHorizontally(), and SCH_BITMAP::MirrorVertically().

◆ PlotImage()

void BITMAP_BASE::PlotImage ( PLOTTER aPlotter,
const wxPoint &  aPos,
KIGFX::COLOR4D  aDefaultColor,
int  aDefaultPensize 
) const

Plot bitmap on plotter.

If the plotter does not support bitmaps, plot a

Parameters
aPlotterthe plotter to use.
aPosthe position of the center of the bitmap.
aDefaultColorthe color used to plot the rectangle when bitmap is not supported.
aDefaultPensizethe pen size used to plot the rectangle when bitmap is not supported.

Definition at line 340 of file bitmap_base.cpp.

344 {
345  if( m_image == NULL )
346  return;
347 
348  // These 2 lines are useful only for plotters that cannot plot a bitmap
349  // and plot a rectangle instead of.
350  aPlotter->SetColor( aDefaultColor );
351  aPlotter->SetCurrentLineWidth( aDefaultPensize );
352  aPlotter->PlotImage( *m_image, aPos, GetScalingFactor() );
353 }
double GetScalingFactor() const
This scaling factor depends on m_pixelSizeIu and m_scale.
Definition: bitmap_base.h:111
#define NULL
virtual void SetColor(const COLOR4D &color)=0
virtual void PlotImage(const wxImage &aImage, const wxPoint &aPos, double aScaleFactor)
Only PostScript plotters can plot bitmaps.
Definition: plotter.cpp:238
virtual void SetCurrentLineWidth(int width, void *aData=nullptr)=0
Set the line width for the next drawing.
wxImage * m_image
Definition: bitmap_base.h:239

References GetScalingFactor(), m_image, NULL, PLOTTER::PlotImage(), PLOTTER::SetColor(), and PLOTTER::SetCurrentLineWidth().

Referenced by SCH_BITMAP::Plot(), and PlotDrawingSheet().

◆ ReadImageFile() [1/2]

bool BITMAP_BASE::ReadImageFile ( const wxString &  aFullFilename)

Reads and stores in memory an image file.

Initialize the bitmap format used to draw this item. Supported images formats are format supported by wxImage if all handlers are loaded. By default, .png, .jpeg are always loaded.

Parameters
aFullFilenameThe full filename of the image file to read.
Returns
true if success reading else false.

Definition at line 104 of file bitmap_base.cpp.

105 {
106  wxImage* new_image = new wxImage();
107 
108  if( !new_image->LoadFile( aFullFilename ) )
109  {
110  delete new_image;
111  return false;
112  }
113 
114  delete m_image;
115  m_image = new_image;
116  m_bitmap = new wxBitmap( *m_image );
117 
118  return true;
119 }
wxBitmap * m_bitmap
Definition: bitmap_base.h:240
wxImage * m_image
Definition: bitmap_base.h:239

References m_bitmap, and m_image.

Referenced by SCH_BITMAP::ReadImageFile(), and TEST_BITMAP_BASE_FIXTURE::TEST_BITMAP_BASE_FIXTURE().

◆ ReadImageFile() [2/2]

bool BITMAP_BASE::ReadImageFile ( wxInputStream &  aInStream)

Reads and stores in memory an image file.

Initialize the bitmap format used to draw this item.

Supported images formats are format supported by wxImage if all handlers are loaded. By default, .png, .jpeg are always loaded.

Parameters
aInStreaman input stream containing the file data.
Returns
true if success reading else false.

Definition at line 87 of file bitmap_base.cpp.

88 {
89  auto new_image = std::make_unique<wxImage>();
90 
91  if( !new_image->LoadFile( aInStream ) )
92  {
93  return false;
94  }
95 
96  delete m_image;
97  m_image = new_image.release();
98  m_bitmap = new wxBitmap( *m_image );
99 
100  return true;
101 }
wxBitmap * m_bitmap
Definition: bitmap_base.h:240
wxImage * m_image
Definition: bitmap_base.h:239

References m_bitmap, and m_image.

◆ RebuildBitmap()

void BITMAP_BASE::RebuildBitmap ( )
inline

Definition at line 87 of file bitmap_base.h.

87 { *m_bitmap = wxBitmap( *m_image ); }
wxBitmap * m_bitmap
Definition: bitmap_base.h:240
wxImage * m_image
Definition: bitmap_base.h:239

References m_bitmap, and m_image.

Referenced by Mirror(), DIALOG_IMAGE_EDITOR::OnGreyScaleConvert(), and Rotate().

◆ Rotate()

void BITMAP_BASE::Rotate ( bool  aRotateCCW)

Rotate image CW or CCW.

Parameters
aRotateCCWtrue to rotate CCW or false to rotate CW.

Definition at line 330 of file bitmap_base.cpp.

331 {
332  if( m_image )
333  {
334  *m_image = m_image->Rotate90( aRotateCCW );
335  RebuildBitmap();
336  }
337 }
void RebuildBitmap()
Definition: bitmap_base.h:87
wxImage * m_image
Definition: bitmap_base.h:239

References m_image, and RebuildBitmap().

Referenced by SCH_BITMAP::Rotate().

◆ SaveData() [1/2]

bool BITMAP_BASE::SaveData ( FILE *  aFile) const

Write the bitmap data to aFile.

The file format is png, in hexadecimal form. If the hexadecimal data is converted to binary it gives exactly a .png image data.

Parameters
aFileThe FILE to write to.
Returns
true if success writing else false.

Definition at line 122 of file bitmap_base.cpp.

123 {
124  if( m_image )
125  {
126  wxMemoryOutputStream stream;
127  m_image->SaveFile( stream, wxBITMAP_TYPE_PNG );
128 
129  // Write binary data in hexadecimal form (ASCII)
130  wxStreamBuffer* buffer = stream.GetOutputStreamBuffer();
131  char* begin = (char*) buffer->GetBufferStart();
132 
133  for( int ii = 0; begin < buffer->GetBufferEnd(); begin++, ii++ )
134  {
135  if( ii >= 32 )
136  {
137  ii = 0;
138 
139  if( fprintf( aFile, "\n" ) == EOF )
140  return false;
141  }
142 
143  if( fprintf( aFile, "%2.2X ", *begin & 0xFF ) == EOF )
144  return false;
145  }
146  }
147 
148  return true;
149 }
wxImage * m_image
Definition: bitmap_base.h:239

References m_image.

Referenced by DS_DATA_MODEL_IO::format().

◆ SaveData() [2/2]

void BITMAP_BASE::SaveData ( wxArrayString &  aPngStrings) const

Write the bitmap data to an array string.

The format is png, in Hexadecimal form. If the hexadecimal data is converted to binary it gives exactly a .png image data.

Parameters
aPngStringsThe wxArrayString to write to.

Definition at line 152 of file bitmap_base.cpp.

153 {
154  if( m_image )
155  {
156  wxMemoryOutputStream stream;
157  m_image->SaveFile( stream, wxBITMAP_TYPE_PNG );
158 
159  // Write binary data in hexadecimal form (ASCII)
160  wxStreamBuffer* buffer = stream.GetOutputStreamBuffer();
161  char* begin = (char*) buffer->GetBufferStart();
162  wxString line;
163 
164  for( int ii = 0; begin < buffer->GetBufferEnd(); begin++, ii++ )
165  {
166  if( ii >= 32 )
167  {
168  ii = 0;
169  aPngStrings.Add( line );
170  line.Empty();
171  }
172 
173  line << wxString::Format( wxT( "%2.2X " ), *begin & 0xFF );
174  }
175 
176  // Add last line:
177  if( !line.IsEmpty() )
178  aPngStrings.Add( line );
179  }
180 }
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, const CPTREE &aTree)
Output a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
Definition: ptree.cpp:200
wxImage * m_image
Definition: bitmap_base.h:239

References Format(), and m_image.

◆ SetBitmap()

void BITMAP_BASE::SetBitmap ( wxBitmap *  aBitMap)
inline

Definition at line 89 of file bitmap_base.h.

90  {
91  delete m_bitmap;
92  m_bitmap = aBitMap;
93  }
wxBitmap * m_bitmap
Definition: bitmap_base.h:240

References m_bitmap.

◆ SetImage()

void BITMAP_BASE::SetImage ( wxImage *  aImage)
inline

Definition at line 73 of file bitmap_base.h.

74  {
75  delete m_image;
76  m_image = aImage;
77  }
wxImage * m_image
Definition: bitmap_base.h:239

References m_image.

◆ SetPixelSizeIu()

void BITMAP_BASE::SetPixelSizeIu ( double  aPixSize)
inline

◆ SetScale()

void BITMAP_BASE::SetScale ( double  aScale)
inline

Member Data Documentation

◆ m_bitmap

wxBitmap* BITMAP_BASE::m_bitmap
private

◆ m_image

◆ m_pixelSizeIu

double BITMAP_BASE::m_pixelSizeIu
private

◆ m_ppi

int BITMAP_BASE::m_ppi
private

Definition at line 245 of file bitmap_base.h.

Referenced by BITMAP_BASE(), GetPPI(), and ImportData().

◆ m_scale

double BITMAP_BASE::m_scale
private

Definition at line 237 of file bitmap_base.h.

Referenced by BITMAP_BASE(), GetScale(), GetScalingFactor(), ImportData(), and SetScale().


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