KiCad PCB EDA Suite
Loading...
Searching...
No Matches
IMAGE_SIZE Class Reference

#include <bitmap2cmp_panel.h>

Public Member Functions

 IMAGE_SIZE ()
 
void SetUnit (EDA_UNITS aUnit)
 
void SetOriginalDPI (int aDPI)
 
void SetOriginalSizePixels (int aPixels)
 
double GetOutputSize ()
 
void SetOutputSize (double aSize, EDA_UNITS aUnit)
 
int GetOriginalSizePixels ()
 
void SetOutputSizeFromInitialImageSize ()
 
int GetOutputDPI ()
 

Private Attributes

EDA_UNITS m_unit
 
double m_outputSize
 
int m_originalDPI
 
int m_originalSizePixels
 

Detailed Description

Definition at line 34 of file bitmap2cmp_panel.h.

Constructor & Destructor Documentation

◆ IMAGE_SIZE()

IMAGE_SIZE::IMAGE_SIZE ( )

Definition at line 50 of file bitmap2cmp_frame.cpp.

References DEFAULT_DPI, m_originalDPI, m_originalSizePixels, m_outputSize, and m_unit.

Member Function Documentation

◆ GetOriginalSizePixels()

int IMAGE_SIZE::GetOriginalSizePixels ( )
inline

Definition at line 65 of file bitmap2cmp_panel.h.

References m_originalSizePixels.

Referenced by GetOutputDPI(), and SetOutputSizeFromInitialImageSize().

◆ GetOutputDPI()

int IMAGE_SIZE::GetOutputDPI ( )
Returns
the pixels per inch value to build the output image. It is used by potrace to build the polygonal image

Definition at line 74 of file bitmap2cmp_frame.cpp.

References GetOriginalSizePixels(), KiROUND(), m_outputSize, and m_unit.

Referenced by BITMAP2CMP_PANEL::ExportToBuffer().

◆ GetOutputSize()

◆ SetOriginalDPI()

void IMAGE_SIZE::SetOriginalDPI ( int  aDPI)
inline

Definition at line 44 of file bitmap2cmp_panel.h.

References m_originalDPI.

Referenced by BITMAP2CMP_PANEL::OpenProjectFiles().

◆ SetOriginalSizePixels()

void IMAGE_SIZE::SetOriginalSizePixels ( int  aPixels)
inline

Definition at line 49 of file bitmap2cmp_panel.h.

References m_originalSizePixels.

Referenced by BITMAP2CMP_PANEL::OpenProjectFiles().

◆ SetOutputSize()

void IMAGE_SIZE::SetOutputSize ( double  aSize,
EDA_UNITS  aUnit 
)
inline

◆ SetOutputSizeFromInitialImageSize()

void IMAGE_SIZE::SetOutputSizeFromInitialImageSize ( )

◆ SetUnit()

void IMAGE_SIZE::SetUnit ( EDA_UNITS  aUnit)

Member Data Documentation

◆ m_originalDPI

int IMAGE_SIZE::m_originalDPI
private

◆ m_originalSizePixels

int IMAGE_SIZE::m_originalSizePixels
private

◆ m_outputSize

double IMAGE_SIZE::m_outputSize
private

◆ m_unit

EDA_UNITS IMAGE_SIZE::m_unit
private

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