Author Topic: Scaling Screenshots  (Read 865 times)

I don't really need help with anything, but I'd like to poll the community to see if people have any ideas for this.

Basically, I want to scale down screenshots from the current screen resolution, like a reverse $MegaShot. Like, to 640x480 from a larger resolution. I'm already aware $MegaShotScaleFactor only scales up, and I have a feeling if I can do this it's going to have to be something hacky. I've tried creating a GuiImageControl or w/e on the canvas and using getPixelColor and a custom compression algorithm, but it's WAY too slow to be usable. I'm talking ~200ms per pixel slow.

Anyway, thanks for any ideas.

Maybe temporarily change the screen resolution?

Maybe temporarily change the screen resolution?
Maybe, if all else fails. I'd still like to be able to take thumbnail pictures though, like 300x300.

Don't bitmaps automatically size to fit to custom-sized GUI controls?

Can you temporarily change the canvas size?

Don't bitmaps automatically size to fit to custom-sized GUI controls?
No, but they can getPixelColor outside of their range, which is why I was able to use them.

Can you temporarily change the canvas size?
Canvas is the actual window afaik. If you resize canvas you're just doing what chrono suggested.

tip: use a lazier compression algorithm
torque sucks in terms of speed.

tip: use a lazier compression algorithm
torque sucks in terms of speed.
the compression algorithm isn't what lagged, it was the data collection