RootEncoder icon indicating copy to clipboard operation
RootEncoder copied to clipboard

When set scale moveing to ZoomIn and ZoomOut image is not Smooth

Open PongPloy2016 opened this issue 2 years ago • 3 comments

hi @pedroSG94

Could you please help me, i had problems about reduce image scale down and enlarge image to scale up

I try to set scale function to reduce image scale down and enlarge image to scale up with R.drawable.ic..

Screen Shot 2565-05-15 at 02 59 37

but I tried reduce image scale down in on the top and bottom, but it cannot scale down on the left and on the right, in method scaleSprite MotionEvent motionEvent got incorrect move

Screen Shot 2565-05-15 at 03 12 13

You try video Plase : https://drive.google.com/file/d/1D4MExJht75K4_4MA96t_NGr9IiyGQbR7/view?usp=drivesdk

and asking for guidelines and methods to fix them

please suggess me

Thank you

PongPloy2016 avatar May 14 '22 20:05 PongPloy2016

Hello,

Did you tried to set position after scale? Like this:

PointF position = baseObjectFilterRender.getPosition();
baseObjectFilterRender.setScale(scale.x, scale.y);
baseObjectFilterRender.setPosition(position.x, position.y);

pedroSG94 avatar May 16 '22 13:05 pedroSG94

could you please watch my video issue that i found problem about scale up and scale down in images which them does not reduce the size to the ratio it should be

Video 1 https://drive.google.com/file/d/1DWrLUgetvEEOTwlZ7H1TaBZH8FwkOvql/view?usp=drivesdk

Video 2

https://drive.google.com/file/d/1DYHiufIe59FXJpz0hecUlIfA8ESdAWsC/view?usp=drivesdk

Exmaple RfPGy

PongPloy2016 avatar May 16 '22 15:05 PongPloy2016

Can you share me an image and filter configuration to emulate your case?

pedroSG94 avatar May 20 '22 19:05 pedroSG94