01-03-2013, 01:11 AM
Please people help me to rotate a simple image. I´m using Delphi.
My code is working. In my form i have one TVLDSImageDisplay and one TLVRotate. I dont know how to rotate the image after display. Inside the "TLVRotate.InpuPin" property, there is nothing to select.
This is my code:
Pleaseeeeee !!!
thanks.
My code is working. In my form i have one TVLDSImageDisplay and one TLVRotate. I dont know how to rotate the image after display. Inside the "TLVRotate.InpuPin" property, there is nothing to select.
This is my code:
Code:
procedure TForm1.Button1Click(Sender: TObject);
var
img : TBitmap;
jpg : TPicture;
begin
jpg := TPicture.Create;
jpg.LoadFromFile('D:\jucerun\delphi\MidiDelphi\VolumeKnob.jpg');
img := TBitmap.Create;
img.Width := 121;
img.Height := 121;
img.Canvas.Draw(0,0,jpg.Graphic);
VLRotate1.Angle := 90;
VLDSImageDisplay1.DisplayBitmap(img);
end;
Pleaseeeeee !!!
thanks.