I have a sprite on the layout, and I've implemented logic where only the area covered by that Sprite is captured when taking a screenshot (using the "System: Snapshot Canvas" action)
> -> System: Take snapshot of canvas (PNG, quality 75, offset LayerToCanvasX(1,Sprite.BBoxLeft,Sprite.BBoxTop)×PlatformInfo.DevicePixelRatio, LayerToCanvasY(1,Sprite.BBoxLeft,Sprite.BBoxTop)×PlatformInfo.DevicePixelRatio size Sprite.Width×(PlatformInfo.CanvasDeviceWidth÷ViewportWidth(1)) x Sprite.Height×(PlatformInfo.CanvasDeviceHeight÷ViewportHeight(1)))
If I export the screenshot, how can I ensure its size? Let's say I want to export a specific area of the screen at an exact size of 277x277 pixels. How can I achieve this? Normally, when taking a screenshot, it adapts to the screen size, but I want to capture a particular area at a fixed resolution.
One way it can be done is by turning off the full-screen mode in the display properties. However, this approach doesn't allow me to export it to Android. Please assist me.
Here is the c3p.
Edit:1
Another way I think it is possible is that Before exporting the screenshot, resize it to the desired resolution, but I don't know how to resize it to a certain size and then let the user export that.