(Created page with "{{mirc title|/drawsize Command}} The '''/drawsize command''' extend the bitmap size of a picture window. == Synopsis == /drawsize <@win> <w> <h> == Switches == None == Par...") |
|||
Line 12: | Line 12: | ||
* '''<h>''' - new height | * '''<h>''' - new height | ||
− | Note: | + | Note: a bitmap cannot be sized to less than the largest point that has been drawn on it (which can be reset with /clear). Once a size has been set, changing the window size will not resize it to less than the set size. |
− | + | ||
+ | |||
+ | == Practically speaking? == | ||
+ | |||
+ | This command was added after a bug report was [http://forums.mirc.com/ubbthreads.php/ubb/showflat/Number/260318/ made], revealing /drawrect is not drawing beyond the size of the window (it does not extend the bitmap to prevent too much memory usage with some failed parameter passed for coordinates). | ||
+ | |||
+ | /window can be used to set the size of the bitmap (-f) however /window also resize the window accordingly. | ||
+ | |||
+ | With /drawsize, you can extend the bitmap to make sure your draws are correctly made beyond the size of the window without having the size of the window (what's visible) to be the same (more or less, borders and visual effect put aside) as the size of the bitmap. | ||
== Compatibility == | == Compatibility == |
Revision as of 20:08, 14 August 2017
The /drawsize command extend the bitmap size of a picture window.
Synopsis
/drawsize <@win> <w> <h>
Switches
None
Parameters
- <w> - new width
- <h> - new height
Note: a bitmap cannot be sized to less than the largest point that has been drawn on it (which can be reset with /clear). Once a size has been set, changing the window size will not resize it to less than the set size.
Practically speaking?
This command was added after a bug report was made, revealing /drawrect is not drawing beyond the size of the window (it does not extend the bitmap to prevent too much memory usage with some failed parameter passed for coordinates).
/window can be used to set the size of the bitmap (-f) however /window also resize the window accordingly.
With /drawsize, you can extend the bitmap to make sure your draws are correctly made beyond the size of the window without having the size of the window (what's visible) to be the same (more or less, borders and visual effect put aside) as the size of the bitmap.
Compatibility
Added: mIRC v7.48
Added on: 15 Apr 2017
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.
See also
- List of commands
- List of identifiers
- $window
- $click
- $mouse
- $inellipse
- $inrect
- $inroundrect
- $inpoly
- $onpoly
- $rgb
- $getdot
- $height
- /drawcopy
- /drawfill
- /drawline
- /drawpic
- /drawrect
- /drawreplace
- /drawsave
- /drawscroll
- /drawtext