Difference between revisions of "Bobscreen"
From Sega Retro
Line 6: | Line 6: | ||
{{#if:{{{forcewidescreen|}}}||{{ | {{#if:{{{forcewidescreen|}}}||{{ | ||
#ifeq: {{#mediadimensions:{{{1}}}}} | 320 × 224 |{{#vardefine:xratio|10}}{{#vardefine:yratio|7}}|}}{{ | #ifeq: {{#mediadimensions:{{{1}}}}} | 320 × 224 |{{#vardefine:xratio|10}}{{#vardefine:yratio|7}}|}}{{ | ||
+ | #ifeq: {{#mediadimensions:{{{1}}}}} | 256 × 224 |{{#vardefine:xratio|10}}{{#vardefine:yratio|7}}|}}{{ | ||
#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}}}}} | 256 × 384 |{{#vardefine:xratio|3}}{{#vardefine:yratio|2}}|}} | #ifeq: {{#mediadimensions:{{{1}}}}} | 256 × 384 |{{#vardefine:xratio|3}}{{#vardefine:yratio|2}}|}} |
Revision as of 05:12, 11 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