1
Answer

Crop Image 50 %

Ramco Ramco

Ramco Ramco

1w
69
1

Hi

 I have below code and i want fromthe centre of Picture1 50 % should be displayed.

    Dim lSourceX As Long, lSourceY As Long
    Dim lOldWidth As Long, lOldHeight As Long
    Dim lNewWidth As Long, lNewHeight As Long

    Picture1.AutoRedraw = True
    Picture1.Picture = LoadPicture(App.Path & "\O_" & tno & ".jpg")
    Picture1.Width = Picture1.Picture.Width
    Picture1.Height = Picture1.Picture.Height
    Picture1.Picture = Picture1.Image

Thanks

Answers (1)