Difference between revisions of "BobscreenTest"
From Sega Retro
(another rewrite; seems to handle everything) |
|||
Line 6: | Line 6: | ||
| 352 × 240 = 0.9 <!--Saturn PAL--> | | 352 × 240 = 0.9 <!--Saturn PAL--> | ||
| 704 × 480 = 0.9 <!--Saturn PAL--> | | 704 × 480 = 0.9 <!--Saturn PAL--> | ||
+ | | 512 × 448 = 1.25 <!--PlayStation 2--> | ||
| {{#ifeq:{{{forcewidescreen}}}|yes|1.25|1}} | | {{#ifeq:{{{forcewidescreen}}}|yes|1.25|1}} | ||
}}}}{{#vardefine:vscale|{{#switch:{{#mediadimensions:{{{1}}}}} | }}}}{{#vardefine:vscale|{{#switch:{{#mediadimensions:{{{1}}}}} | ||
Line 46: | Line 47: | ||
{|class="prettytable" | {|class="prettytable" | ||
! Code || Raw image || Output | ! Code || Raw image || Output | ||
+ | |- | ||
+ | | <nowiki>{{bobscreenTest|AlteredBeast PS2 title.png}}</nowiki> | ||
+ | | [[File:AlteredBeast PS2 title.png]] | ||
+ | | {{bobscreenTest|AlteredBeast PS2 title.png}} | ||
|- | |- | ||
| <nowiki>{{bobscreenTest|BladeEagle title.png}}</nowiki> | | <nowiki>{{bobscreenTest|BladeEagle title.png}}</nowiki> | ||
| [[File:BladeEagle title.png]] | | [[File:BladeEagle title.png]] | ||
| {{bobscreenTest|BladeEagle title.png}} | | {{bobscreenTest|BladeEagle title.png}} | ||
− | |||
|- | |- | ||
| <nowiki>{{bobscreenTest|OutRun3D title.png}}</nowiki> | | <nowiki>{{bobscreenTest|OutRun3D title.png}}</nowiki> |
Revision as of 13:50, 13 July 2018
This template sets the maximum width of a screenshot to 320 pixels, and corrects its aspect ratio.
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
{{bobscreenTest|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.