Prev
Top
Next
Name
KXL_PutRectImage
Synopsis
KXL_PutRectImage -- The arbitrary rectangles of an image are drawn.
For the compatibility of 1.1.4 or earlier.
Description
void KXL_PutRectImage(KXL_Image *img, KXL_Rect rect, Sint16 left, Sint16 top);
Arguments
img | Pointer of KXL_Image structure. |
rect | KXL_Rect structre. |
left | Left position which draws. |
top | Top position which draws. |
Return Value
Nothing.
Exsample
sample.bmp
#include <KXL.h>
int main(void)
{
KXL_Image *img;
KXL_Rect rect = {8, 8, 16, 16};
KXL_CreateWindow(100, 100, "sample", 0);
img = KXL_LoadBitmap("sample.bmp", 0);
KXL_SetDrawColor(0x00, 0x00, 0xff);
KXL_ClearFrameImm(0, 0, 100, 100);
KXL_PutImage(img, 10, 10);
KXL_PutRectImage(img, rect, 50, 50);
KXL_UpDateImm(0, 0, 100, 100);
getchar();
KXL_DeleteImage(img);
KXL_DeleteWindow();
return 0;
}