Jump to content
ginnix

Image ios

Recommended Posts

Hi All,

 

I am developing a small app for ios. I have an image that I zoom in with this code.

 

    LImageCenter := ImgCameraView.Position.Point + PointF(ImgCameraView.Width / 2, ImgCameraView.Height / 2);
    ImgCameraView.Width := CamWidth*Zoom;
    ImgCameraView.Height := CamHeight*Zoom;
    ImgCameraView.Position.X := lImageCenter.X - ImgCameraView.Width / 2;
    ImgCameraView.Position.Y := LImageCenter.Y - ImgCameraView.Height / 2;

 

 

The problem I am having is, when I save the image the zooming is ignored and the original image is saved.

 

How do I save the image with the zooming effect?

 

Thanks

Share this post


Link to post

Shouldn't you first crop the picture to the exact display position and then save it?
Then you will lose everything outside of the view if that's what you intend to do?

 

Isn't there a function like ClipRect or so.

 

Edited by sjordi

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×