#pragma once #include "Vector2.hpp" #include "Range.hpp" #include "BitmapRef.hpp" namespace msdfgen { /// Reconstructs the shape's appearance into output from the distance field sdf. void renderSDF(const BitmapSection &output, const BitmapConstSection &sdf, Range sdfPxRange = 0, float sdThreshold = .5f); void renderSDF(const BitmapSection &output, const BitmapConstSection &sdf, Range sdfPxRange = 0, float sdThreshold = .5f); void renderSDF(const BitmapSection &output, const BitmapConstSection &sdf, Range sdfPxRange = 0, float sdThreshold = .5f); void renderSDF(const BitmapSection &output, const BitmapConstSection &sdf, Range sdfPxRange = 0, float sdThreshold = .5f); void renderSDF(const BitmapSection &output, const BitmapConstSection &sdf, Range sdfPxRange = 0, float sdThreshold = .5f); void renderSDF(const BitmapSection &output, const BitmapConstSection &sdf, Range sdfPxRange = 0, float sdThreshold = .5f); /// Snaps the values of the floating-point bitmaps into one of the 256 values representable in a standard 8-bit bitmap. void simulate8bit(const BitmapSection &bitmap); void simulate8bit(const BitmapSection &bitmap); void simulate8bit(const BitmapSection &bitmap); }