var
AlphaBitmap: TcxAlphaBitmap;
begin
cxImage1.Picture.LoadFromFile('이미지파일.jpg');
AlphaBitmap := TcxAlphaBitmap.CreateSize(cxImage1.Width, cxImage1.Height);
try
AlphaBitmap.Canvas.Draw(0, 0, cxImage1.Picture.Graphic);
AlphaBitmap.Rotate(raPlus90); //시계방향으로 90도 회전
cxImage1.Picture.Graphic := AlphaBitmap;
finally
AlphaBitmap.Free;
end;
end;
반응형