added dump
This commit is contained in:
1 parent
6773e620cf
commit
a60c60186b
2 files changed
+8
No files matched your search
@@ -106,6 +106,9 @@ constexpr int ySizeBig = 40;
|
|||||||
// black double-frame.
|
// black double-frame.
|
||||||
void frameImage(Dpi::Canvas &canvas, Dpi::Bitmap &src, int x, int y, int width, int height, int xSrc, int ySrc,
|
void frameImage(Dpi::Canvas &canvas, Dpi::Bitmap &src, int x, int y, int width, int height, int xSrc, int ySrc,
|
||||||
bool isControl = false);
|
bool isControl = false);
|
||||||
|
// ScreenTools.pas's Dump(): a plain sprite-sheet blit with no mask/
|
||||||
|
// transparency handling (unlike sprite()).
|
||||||
|
void dump(Dpi::Bitmap &dst, GraphicSet &graphicSet, int xDst, int yDst, int width, int height, int xGr, int yGr);
|
||||||
|
|
||||||
// Colors palette row/column indices (Colors->image().pixelColor(col, row)).
|
// Colors palette row/column indices (Colors->image().pixelColor(col, row)).
|
||||||
constexpr int clkAge0 = 1;
|
constexpr int clkAge0 = 1;
|
||||||
|
|||||||
@@ -363,6 +363,11 @@ void frameImage(Dpi::Canvas &canvas, Dpi::Bitmap &src, int x, int y, int width,
|
|||||||
canvas.copyRect(QRect(x, y, width, height), src.canvas(), QRect(xSrc, ySrc, width, height));
|
canvas.copyRect(QRect(x, y, width, height), src.canvas(), QRect(xSrc, ySrc, width, height));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void dump(Dpi::Bitmap &dst, GraphicSet &graphicSet, int xDst, int yDst, int width, int height, int xGr, int yGr)
|
||||||
|
{
|
||||||
|
bitBltBitmap(dst, xDst, yDst, width, height, graphicSet.data, xGr, yGr);
|
||||||
|
}
|
||||||
|
|
||||||
void editFrame(Dpi::Canvas &canvas, const QRect &rect, const Texture &texture)
|
void editFrame(Dpi::Canvas &canvas, const QRect &rect, const Texture &texture)
|
||||||
{
|
{
|
||||||
frame(canvas, rect.left() - 1, rect.top() - 1, rect.right(), rect.bottom(), Qt::black, Qt::black);
|
frame(canvas, rect.left() - 1, rect.top() - 1, rect.right(), rect.bottom(), Qt::black, Qt::black);
|
||||||
|
|||||||
Reference in new issue
Block a user