Files
Crosspoint/lib/PngToBmpConverter/PngToBmpConverter.h
T

16 lines
595 B
C++

#pragma once
#include <HalStorage.h>
class Print;
class PngToBmpConverter {
static bool pngFileToBmpStreamInternal(HalFile& pngFile, Print& bmpOut, int targetWidth, int targetHeight,
bool oneBit, bool crop = true);
public:
static bool pngFileToBmpStream(HalFile& pngFile, Print& bmpOut, bool crop = true);
static bool pngFileToBmpStreamWithSize(HalFile& pngFile, Print& bmpOut, int targetMaxWidth, int targetMaxHeight);
static bool pngFileTo1BitBmpStreamWithSize(HalFile& pngFile, Print& bmpOut, int targetMaxWidth, int targetMaxHeight);
};