Changes

→‎Edit an image: update for SMAPI 3.3 release
Line 293: Line 293:  
|}
 
|}
   −
{{SMAPI upcoming|3.3|content= 
   
; ExtendImage
 
; ExtendImage
 
: Extend the image if needed to fit the given size. Note that '''this is an expensive operation''', creates a new texture instance, and extending a spritesheet horizontally may cause game errors or bugs. For example:
 
: Extend the image if needed to fit the given size. Note that '''this is an expensive operation''', creates a new texture instance, and extending a spritesheet horizontally may cause game errors or bugs. For example:
Line 306: Line 305:  
</source>
 
</source>
 
: Available method arguments:
 
: Available method arguments:
: {{{!}} class="wikitable"
+
: {| class="wikitable"
{{!}}-
+
|-
 
! argument
 
! argument
 
! usage
 
! usage
{{!}}-
+
|-
{{!}} <tt>minWidth</tt>
+
| <tt>minWidth</tt>
{{!}} The minimum desired width. If the image width is less than this value, it'll be extended on the right up to that size.
+
| The minimum desired width. If the image width is less than this value, it'll be extended on the right up to that size.
{{!}}-
+
|-
{{!}} <tt>minHeight</tt>
+
| <tt>minHeight</tt>
{{!}} The minimum desired height. If the image height is less than this value, it'll be extended from the bottom up to that size.
+
| The minimum desired height. If the image height is less than this value, it'll be extended from the bottom up to that size.
{{!}}}
+
|}
}}
      
==Advanced==
 
==Advanced==
translators
8,437

edits