You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
my code <ProcessImage image={imageSrc} resize={{ width: 400 }} rotate={{ degree: 90 * this.state.rotate }} processedImage={(src, err) => this.setState({ src, err})} />
when the degree is 90 or 180,origin image's width would be current image's height.
I noticed that api doc
rotate
rotate the image
Example -
<ProcessImage image={image} rotate={{ degree: 75, mode: 'bilinear' }}
Optionally, a resize mode can be passed. If false is passed as the second parameter, the image width and height will not be resized.
But i do not kown how to pass the parameter, can you give me a example??
The text was updated successfully, but these errors were encountered:
my code
<ProcessImage image={imageSrc} resize={{ width: 400 }} rotate={{ degree: 90 * this.state.rotate }} processedImage={(src, err) => this.setState({ src, err})} />
when the degree is 90 or 180,origin image's width would be current image's height.
I noticed that api doc
rotate
rotate the image
Example -
<ProcessImage image={image} rotate={{ degree: 75, mode: 'bilinear' }}
Optionally, a resize mode can be passed. If false is passed as the second parameter, the image width and height will not be resized.
But i do not kown how to pass the parameter, can you give me a example??
The text was updated successfully, but these errors were encountered: