Difference between revisions of "Bobscreen"
From Sega Retro
Line 8: | Line 8: | ||
#ifeq: {{#mediadimensions:{{{1}}}}} | 248 × 192 |{{#vardefine:xratio|31}}{{#vardefine:yratio|24}}|}} | #ifeq: {{#mediadimensions:{{{1}}}}} | 248 × 192 |{{#vardefine:xratio|31}}{{#vardefine:yratio|24}}|}} | ||
}} | }} | ||
+ | {{#ifeq:{{#mediadimensions:{{{1}}}}} | 960 × 544 |{{#vardefine:xratio|16}}{{#vardefine:yratio|9}}|}} | ||
{{#ifeq:{{#mediadimensions:{{{1}}}}} | 1,280 × 720 |{{#vardefine:xratio|16}}{{#vardefine:yratio|9}}|}} | {{#ifeq:{{#mediadimensions:{{{1}}}}} | 1,280 × 720 |{{#vardefine:xratio|16}}{{#vardefine:yratio|9}}|}} | ||
{{#ifeq:{{#mediadimensions:{{{1}}}}} | 1,920 × 1080 |{{#vardefine:xratio|16}}{{#vardefine:yratio|9}}|}} | {{#ifeq:{{#mediadimensions:{{{1}}}}} | 1,920 × 1080 |{{#vardefine:xratio|16}}{{#vardefine:yratio|9}}|}} |
Revision as of 06:12, 7 July 2018
This template sets the maximum width of a screenshot to 320 pixels, and corrects its aspect ratio.
Contents
Usage
{{bobscreen|MagicalPuzzlePopils title.png}}
returns
This is how the game appears on an actual Sega Game Gear. The original image taken from an emulator is below:
Options
{{bobscreen|MagicalPuzzlePopils title.png|width=120}}
returns
"width" also takes into account the adjusted aspect ratio, so the image appears 120 pixels wide even if the source image is not.
Height
In addition, this template corrects heights:
Anamorphic widescreen