B4J Question [B4X] [XUI] xResizeAndCrop - MinCroppedWidth/Height non scaled (possible bug?)

GianniGntl

Member
Licensed User
Longtime User
Good morning,

@klaus, congratulations on this control. I'm considering using it in a small project.

I noticed a small problem: setting the MinCroppedWidth property (and implicitly MinCroppedHeight based on the set ratio) doesn't consider the pixels of the original image, but those of the screen.

As a workaround, if I need a minimum resolution, I set the value by dividing it by PixelScale (computed in DrawImage), so the minimum cropping has the correct dimensions.

N.B.: Since PixelScale is private, there's no getter; I access the value using Reflection.

Cheers.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…