Difference between revisions of "BobscreenTest"
From Sega Retro
(victory??) |
|||
Line 16: | Line 16: | ||
{{#vardefine:hmargin|{{#expr:({{#var:calculatedwidth}}-{{#var:imagewidth}})/2}}}} | {{#vardefine:hmargin|{{#expr:({{#var:calculatedwidth}}-{{#var:imagewidth}})/2}}}} | ||
− | {{#vardefine:vmargin|{{#expr:({{#var:calculatedheight}}-{{#var:imageheight}}/2 | + | {{#vardefine:vmargin|{{#expr:({{#var:calculatedheight}}-{{#var:imageheight}})/2}}}} |
− | </div><div class="bobscreen" style=" | + | </div><div class="bobscreen" style="margin-bottom: {{#var:vmargin}}px; margin-top: {{#var:vmargin}}px; margin-left: {{#var:hmargin}}px; margin-right: {{#var:hmargin}}px; display:inline-block; text-align:center;"><div style="transform:scale({{#var:xscale}},{{#var:yscale}}); transform-origin:50%;">[[File:{{{1}}}]]</div></div></includeonly><noinclude> |
This template sets the maximum width of a screenshot to 320 pixels, and corrects its aspect ratio. | This template sets the maximum width of a screenshot to 320 pixels, and corrects its aspect ratio. | ||
Line 26: | Line 26: | ||
returns | returns | ||
− | |||
{{bobscreenTest|MagicalPuzzlePopils title.png}} | {{bobscreenTest|MagicalPuzzlePopils title.png}} | ||
− | |||
This is how the game appears on an actual [[Sega Game Gear]]. The original image taken from an emulator is below: | This is how the game appears on an actual [[Sega Game Gear]]. The original image taken from an emulator is below: | ||
Line 37: | Line 35: | ||
returns | returns | ||
− | |||
{{bobscreenTest|MagicalPuzzlePopils title.png|width=120}} | {{bobscreenTest|MagicalPuzzlePopils title.png|width=120}} | ||
− | |||
"width" also takes into account the adjusted aspect ratio, so the image appears 120 pixels wide even if the source image is not. | "width" also takes into account the adjusted aspect ratio, so the image appears 120 pixels wide even if the source image is not. | ||
Revision as of 15:48, 4 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.
Height
In addition, this template corrects heights:
Anamorphic widescreen