Discuss Scratch

Basic88
Scratcher
1000+ posts

Bitmap Resolution

While I was looking at the project.json, I saw something that said “bitmap resolution”. What is this?
imfh
Scratcher
1000+ posts

Bitmap Resolution

Scratch usually scales images to twice the original size so they look better when you press fullscreen. To save some processing time (at the cost of filesize), Scratch saves this enlarged image rather than the original. If bitmap resolution is 2, that means the saved image is twice the size of the rendered image in Scratch. If bitmap resolution is 1, that means it is the same as when viewed in Scratch.

Scratch doesn't always upscale images, if I remember correctly. If you upload a 960x720 image, the image in Scratch will be 480x360 while the saved image will stay the same (bitmap resolution = 2). It is mainly when you draw an image in the editor that it is upscaled. If you have heard of half-pixels that's what they are talking about.
memario1763
Scratcher
6 posts

Bitmap Resolution

imfh wrote:

Scratch usually scales images to twice the original size so they look better when you press fullscreen. To save some processing time (at the cost of filesize), Scratch saves this enlarged image rather than the original. If bitmap resolution is 2, that means the saved image is twice the size of the rendered image in Scratch. If bitmap resolution is 1, that means it is the same as when viewed in Scratch.

Scratch doesn't always upscale images, if I remember correctly. If you upload a 960x720 image, the image in Scratch will be 480x360 while the saved image will stay the same (bitmap resolution = 2). It is mainly when you draw an image in the editor that it is upscaled. If you have heard of half-pixels that's what they are talking about.

Mildly confused here. If I uploaded a 15360×8640 image it'd be optimised to 480x360? (8640p -> 480p)
Maximouse
Scratcher
1000+ posts

Bitmap Resolution

memario1763 wrote:

Mildly confused here. If I uploaded a 15360×8640 image it'd be optimised to 480x360? (8640p -> 480p)
It would be downscaled to 960x720.
dynamicsofscratch
Scratcher
1000+ posts

Bitmap Resolution

memario1763 wrote:

(#3)

imfh wrote:

Scratch usually scales images to twice the original size so they look better when you press fullscreen. To save some processing time (at the cost of filesize), Scratch saves this enlarged image rather than the original. If bitmap resolution is 2, that means the saved image is twice the size of the rendered image in Scratch. If bitmap resolution is 1, that means it is the same as when viewed in Scratch.

Scratch doesn't always upscale images, if I remember correctly. If you upload a 960x720 image, the image in Scratch will be 480x360 while the saved image will stay the same (bitmap resolution = 2). It is mainly when you draw an image in the editor that it is upscaled. If you have heard of half-pixels that's what they are talking about.

Mildly confused here. If I uploaded a 15360×8640 image it'd be optimised to 480x360? (8640p -> 480p)

Maximouse wrote:

(#4)

memario1763 wrote:

Mildly confused here. If I uploaded a 15360×8640 image it'd be optimised to 480x360? (8640p -> 480p)
It would be downscaled to 960x720.
Both of you, stop necroposting

Powered by DjangoBB