26#ifndef BITMAP_TYPES_H_
27#define BITMAP_TYPES_H_
39enum class BITMAPS :
unsigned int;
81 bool aQuantized =
false );
89wxBitmap
KiScaledBitmap(
const wxBitmap& aBitmap, wxWindow* aWindow );
wxBitmap * KiBitmapNew(BITMAPS aBitmap)
Allocate a wxBitmap on heap from a memory record, held in a BITMAPS.
wxBitmap KiScaledBitmap(BITMAPS aBitmap, wxWindow *aWindow, int aHeight=-1, bool aQuantized=false)
Construct a wxBitmap from a memory record, scaling it if device DPI demands it.
void ClearScaledBitmapCache()
Wipes out the scaled bitmap cache so that the icon theme can be changed.
wxBitmap KiBitmap(BITMAPS aBitmap, int aHeightTag=-1)
Construct a wxBitmap from an image identifier Returns the image from the active theme if the image ha...
int KiIconScale(wxWindow *aWindow)
Return the automatic scale factor that would be used for a given window by KiScaledBitmap and KiScale...
BITMAP_STORE * GetBitmapStore()
bool SaveCanvasImageToFile(EDA_DRAW_FRAME *aFrame, const wxString &aFileName, BITMAP_TYPE aBitmapType=BITMAP_TYPE::PNG)
Save the current view as an image file.
BITMAPS
A list of all bitmap identifiers.
Helper to retrieve bitmaps while handling icon themes and scaling.
The base class for create windows for drawing purpose.
PNG memory record (file in memory).