[
uuid(98256279-35C8-434A-B4A8-4760063EFAD5)
]
interface CCanvasImpl
{
[
]HRESULT Create([
] CDXScreen* pScreen,[
] LONG lSize,[
] CHAR* lpCache,[
] BYTE memoryType);
[
]HRESULT PutPixel([
] int X,[
] int Y,[
] DWORD Col);
[
]HRESULT GetPixel([
] int X,[
] int Y);
[
]HRESULT Rect([
] int X1,[
] int Y1,[
] int X2,[
] int Y2,[
] DWORD Col);
[
]HRESULT FillRect([
] int X1,[
] int Y1,[
] int X2,[
] int Y2,[
] DWORD Col);
[
]HRESULT Line([
] int X1,[
] int Y1,[
] int X2,[
] int Y2,[
] DWORD Col);
[
]HRESULT Circle([
] int X,[
] int Y,[
] int Radius,[
] DWORD Col);
[
]HRESULT FillCircle([
] int X,[
] int Y,[
] int Radius,[
] DWORD Col);
[
]HRESULT RoundedRect([
] int X1,[
] int Y1,[
] int X2,[
] int Y2,[
] int Radius,[
] DWORD Col);
[
]HRESULT Fill([
] DWORD FillColor);
[
]HRESULT TextOut([
] int x,[
] int y,[
] COLORREF col,[
] LPCTSTR pString);
[
]HRESULT DrawText([
] LPCSTR pString,[
] COLORREF col,[
] LPRECT pRect);
[
]HRESULT SaveAsBMP([
] const char* szFilename);
[
]HRESULT Blt([
] CDXSurface* lpCDXS,[
] LONG* lDestX,[
] LONG* lDestY,[
] RECT* srcRect);
[
]HRESULT ClipRect([
] RECT* Rect);
[
]HRESULT Restore();
[
]HRESULT ChangeFont([
] const char* FontName,[
] int Width,[
] int Height,[
] int Attributes);
[
]HRESULT SetFont();
[
]HRESULT Lock();
[
]HRESULT UnLock();
[
]HRESULT GetDC();
[
]HRESULT ReleaseDC();
[
]HRESULT GetWidth();
[
]HRESULT GetHeight();
[
]HRESULT GetSurfacePointer();
[
]HRESULT GetClipRect();
[
]HRESULT SetClipRect([
] RECT* clipRect);
[
]HRESULT GetFontName([
] char* name);
[
]HRESULT GetSurfaceDescriptor([
] LPDDSURFACEDESC2 lpddsd);
[
]HRESULT GetDDS();
[
]HRESULT Refresh([
] RECT* pRect);
};
[
uuid(46D36998-857D-4A63-9C91-F84B1DB6DC39),
version(1.0)
]
library DRAWINGLib
{
};