|
void __fastcall TNetBoard2::SetImageScale(int AScale)
{
Image32->Bitmap->Width=(Image32->Bitmap->Width * AScale)/100;
Image32->Bitmap->Height=(Image32->Bitmap->Height * AScale)/100;
}
로 이미지파일의 크기를 줄이니 이미지파일이 검게 나오네요.
그래서
void __fastcall TNetBoard2::SetImageScale(int AScale)
{
TImage *PiImage = new TImage(NULL);
PiImage->Picture->Bitmap->PixelFormat = pf24bit;
PiImage->Picture->Bitmap->Width =(Image32->Bitmap->Width * AScale)/100;
// Image32->Bitmap->Width=(Image32->Bitmap->Width * AScale)/100;
// Image32->Bitmap->Height=(Image32->Bitmap->Height * AScale)/100;
// Image32->Repaint();
}이런식으로 하려고 하는데 Image32와의 연결을 어떻게 해야하는지 잘모르겠네요.
알려주시면 정말 감사하겠습니다.
|