本文整理汇总了C++中Image::DrawIMG方法的典型用法代码示例。如果您正苦于以下问题:C++ Image::DrawIMG方法的具体用法?C++ Image::DrawIMG怎么用?C++ Image::DrawIMG使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Image
的用法示例。
在下文中一共展示了Image::DrawIMG方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
s32 main(s32 argc, const char* argv[]){
padData paddata;
padInfo padinfo;
movePadData data;
ioPadInit(7);
int move = initLibMove();
NoRSX *GFX = new NoRSX(RESOLUTION_AUTO, RESOLUTION_1920x1080); // RESOLUTION_720x480 | RESOLUTION_720x576 | RESOLUTION_1280x720 | RESOLUTION_1920x1080
Bitmap BMap(GFX);
Object OBJ (GFX);
Image IMG (GFX);
MsgDialog Msg(GFX);
bool write = false;
bool usb_found = false;
bool c_show =false;
u16 CalibX, CalibY;
s32 fd;
u32 frame=1;
u64 sec, nsec;
u64 time_on = 0;
time_t starttime = 0;
char path[256];
char data_char[1024];
char my_time[128];
double fps = 1;
short square = 4;
int usb_num = 0;
int my_data = 0;
int t_show=4, n_pressed=0;
float S_X_HALF = 512.f, S_Y_HALF = 455.f, S_Z_HALF = 494.f, S_G_HALF = 512.f;
float S_X=0, S_Y=0, S_Z=0, S_G=0;
float Max_X=0, Max_Y=0, Max_Z=0, Max_G=0;
fstream write_data;
for(usb_num=0;usb_num<10;usb_num++){
sprintf(path,"/dev_usb%03d/",usb_num);
if(sysLv2FsOpenDir(path,&fd) == 0){
usb_found = true;
goto close_dir;
}
}
close_dir:
NoRSX_Bitmap Precalculated_Layer;
NoRSX_Bitmap Precalculated_Layer2;
pngData *png = new pngData;
BMap.GenerateBitmap(&Precalculated_Layer);
BMap.GenerateBitmap(&Precalculated_Layer2);
Font F2(visitor_ttf, visitor_ttf_size, GFX);
IMG.LoadPNG_Buf((void*)BackGround_png, BackGround_png_size, png);
IMG.DrawIMGtoBitmap(0, 0, png, &Precalculated_Layer);
IMG.DrawIMGtoBitmap(0, 0, png, &Precalculated_Layer2);
free(png);
png = new pngData;
if(move == LIBMOVE_OK)
IMG.LoadPNG_Buf((void*)buttons_plus_move_png, buttons_plus_move_png_size, png);
else
IMG.LoadPNG_Buf((void*)buttons_png, buttons_png_size, png);
IMG.AlphaDrawIMGtoBitmap(200, 160, png, &Precalculated_Layer);
free(png);
png = new pngData;
F2.PrintfToBitmap(200,130,&Precalculated_Layer,COLOR_ORANGE,"PS STRONG-MOTION SEISMOMETER USB %s", (usb_found) ? "FOUND" : "NOT FOUND");
IMG.LoadPNG_Buf((void*)warning_png, warning_png_size, png);
CalibX = (GFX->width - png->width)/2;
CalibY = (GFX->height - png->height)/2;
IMG.DrawIMGtoBitmap(CalibX, CalibY, png, &Precalculated_Layer2);
free(png);
png = new pngData;
if(move == LIBMOVE_OK)
IMG.LoadPNG_Buf((void*)calibrate_png, calibrate_png_size, png);
else
IMG.LoadPNG_Buf((void*)controller_options_png, controller_options_png_size, png);
ioPadSetSensorMode(0,1);
GFX->AppStart();
u32 pixel[400][4];
for(u32 k=0;k<400;k++){
pixel[k][0] = 454;
//.........这里部分代码省略.........