Exemple #1
0
void RotatedDC::DrawBitmap(const Bitmap& bitmap, const RealPoint& pos) {
    if (is_rad0(angle)) {
        RealPoint p_ext = tr(pos);
        dc.DrawBitmap(bitmap, to_int(p_ext.x), to_int(p_ext.y), true);
    } else {
        DrawImage(bitmap.ConvertToImage(), pos);
    }
}
void AlphaMask::setAlpha(Bitmap& bmp) const {
	if (!alpha) return;
	Image img = bmp.ConvertToImage();
	setAlpha(img);
	bmp = Bitmap(img);
}