Chronostasys / Blazor.Cropper

A blazor library provides component to crop image
MIT License
84 stars 19 forks source link

[QUESTION] OffsetX and OffsetY #60

Closed angelru closed 1 year ago

angelru commented 1 year ago

I can't get X, Y. I'm using as you have in your example, am I missing something?

do i have to use cropper.GetCropInfo()?

if I bind OffsetX and OffsetY to properties it is always 0

Chronostasys commented 1 year ago

Hi @angelru , OffsetX and OffsetY are parameters, they are used to set the initial value of the x/y. If you want to get the value of x/y during cropping, use cropper.GetCropInfo() instead.

angelru commented 1 year ago

Thanks