谁有RAD Studio 10.2使用教程啊?
谁有RAD Studio 10.2的使用教程啊?我在电脑上下了RAD Studio 10.2,在电脑上编译程序,编译好后在Mac OS上显示图形界面,界面能出来,但是TImage组件图像显示不出来,谁那有RAD Studio 10.2的使用教程可以告诉我一下吗?或者告诉我TImage的使用方法也行。下面是我的TImage部分的代码:
TBitmapData *bitmapX2 = new TBitmapData();
TBitmap *bmp2 = new TBitmap();
unsigned char *data2;
int i = 0;
bmp2->Width = 300;
bmp2->Height = 200;
Image2->Width = 300;
Image2->Height = 200;
bmp2->Map(TMapAccess::Write,*bitmapX2);
data2 = (unsigned char*)bitmapX2->Data;
for(int y=0;y<bmp2->Width ;y++){
for(int x=0;x<bmp2->Height;x++){
data2[0] = imageData[i++];
data2[1] = imageData[i++];
data2[2] = imageData[i++];
data2[3] = imageData[i++];//0xff;
data2 = data2 + 4;
}
}
bmp2->Unmap(*bitmapX2);
Image2->BeginUpdate();
Image2->Bitmap->Assign(bmp2);
Image2->EndUpdate();
delete bitmapX2;
delete bmp2;
imageData是我自己定义的数组,里面是图像的数据,数组的类型是char类型的。