--- nono/lib/bitmap.h 2026/04/29 17:05:30 1.1.1.6 +++ nono/lib/bitmap.h 2026/04/29 17:05:47 1.1.1.7 @@ -133,6 +133,8 @@ class BitmapRGBX : public BitmapBase // rect の一番上のラスターを rect の残りのラスターにコピーする void CopyFromTop(const Rect& rect); + void DrawPoint(Color c, int x, int y); + void DrawLine(Color c, int x1, int y1, int x2, int y2); void DrawLineH(Color c, int x1, int y1, int x2); void DrawLineV(Color c, int x1, int y1, int y2); @@ -142,6 +144,11 @@ class BitmapRGBX : public BitmapBase } void DrawRect(Color c, const Rect& rect); + void DrawFillCircle(Color b, Color f, int dx, int dy, uint dw, uint dh) { + DrawFillCircle(b, f, Rect(dx, dy, dw, dh)); + } + void DrawFillCircle(Color border, Color fill, const Rect& rect); + // I1 画像を描画 void DrawBitmapI1(int dx, int dy, const BitmapI1& src, const Color *palette); @@ -168,7 +175,10 @@ class BitmapRGBX : public BitmapBase int sxN, int sxD, int sxS, int syN, int syD, int syS); // RGBX 画像を描画 - void DrawBitmap(int dx, int dy, const BitmapRGBX& src); + void DrawBitmap(int dx, int dy, const BitmapRGBX& src, const Rect& sr); + void DrawBitmap(int dx, int dy, const BitmapRGBX& src) { + DrawBitmap(dx, dy, src, Rect(0, 0, src.GetWidth(), src.GetHeight())); + } // RGBX 画像が dr のサイズになるよう拡大縮小して描画 void DrawBitmapStretch(const Rect& dr, const BitmapRGBX& src);