안녕하십니까요?
PaintBox에 Image1.canvas를 카피하려 할 때, 에러가 납니다.
이유는 Image1에 로드된 이미지가 비트맵이 아니고 JPEG 이미지이기 때문인 것 같습니다.
해결책을 아시는 분의 조언 부탁드립니다.
에러 라인:
PaintBox.Canvas.CopyRect(SrcRect, Image1.Canvas, DstRect);
에러 메시지:
"Can only modify an image if it contains a bitmap"
그럼...
> 안녕하십니까요?
>
> PaintBox에 Image1.canvas를 카피하려 할 때, 에러가 납니다.
> 이유는 Image1에 로드된 이미지가 비트맵이 아니고 JPEG 이미지이기 때문인 것 같습니다.
> 해결책을 아시는 분의 조언 부탁드립니다.
>
> 에러 라인:
> PaintBox.Canvas.CopyRect(SrcRect, Image1.Canvas, DstRect);
>
> 에러 메시지:
> "Can only modify an image if it contains a bitmap"
>
> 그럼...
안녕하세요. 아래것으로 해보세요 --;;
PaintBox.Canvas.CopyRect(SrcRect, Image1.Picture.Bitmap.Canvas, DstRect);