From WikiChip
Difference between revisions of "mirc/commands/drawrect"
< mirc‎ | commands

m (Bot: Adding a template)
m (Bot: Fixing links)
Line 43: Line 43:
 
* [[$rgb identifier - mIRC|$rgb]]
 
* [[$rgb identifier - mIRC|$rgb]]
 
* [[$window identifier - mIRC|$window]]
 
* [[$window identifier - mIRC|$window]]
* [[/drawcopy command - mIRC|/drawcopy]]
+
* {{mIRC|/drawcopy}}
* [[/drawdot command - mIRC|/drawdot]]
+
* {{mIRC|/drawdot}}
* [[/drawfill command - mIRC|/drawfill]]
+
* {{mIRC|/drawfill}}
* [[/drawline command - mIRC|/drawline]]
+
* {{mIRC|/drawline}}
* [[/drawpic command - mIRC|/drawpic]]
+
* {{mIRC|/drawpic}}
* [[/drawreplace command - mIRC|/drawreplace]]
+
* {{mIRC|/drawreplace}}
* [[/drawrot command - mIRC|/drawrot]]
+
* {{mIRC|/drawrot}}
* [[/drawsave command - mIRC|/drawsave]]
+
* {{mIRC|/drawsave}}
* [[/drawscroll command - mIRC|/drawscroll]]
+
* {{mIRC|/drawscroll}}
* [[/drawtext command - mIRC|/drawtext]]
+
* {{mIRC|/drawtext}}
 
{{mIRC command list}}
 
{{mIRC command list}}
  
 
[[Category:MIRC commands]]
 
[[Category:MIRC commands]]

Revision as of 19:38, 5 July 2014

The /drawrect command can be used to draw a rectangle in a picture window. Multiple rectangles can be drawn at once.

Synopsis

/drawrect [-ihnrfecd] <@win> <color> <size> <x y w h> [x y w h [...]]

Switches

  • -i - Draws in inverse mode.
  • -h - Highlights the windows icon if it is minimized.
  • -n - Prevents the display from being updated immediately.
  • -r - Indicates that the color is in RGB format.
  • -f - Draws a filled rectangle.
  • -e - Draws an ellipse instead of a rectangle.
  • -c - Draws a focus rectangle.
  • -d - Draws a rounded rectangle, using the format "/drawrect -d x y w h [w h]" where w and h are the width and height of the ellipse used to draw the corners.

Parameters

  • <@win> - Name of the Picture Window to draw to.
  • <color> - A mIRC colour value from 0 to 15, or if the -r switch is used, an RGB value.
  • <size> - Thickness of the border in pixels.
  • <x y w h> - Co-ordinates for a rectangle in pixels, x and y are the top left corner.

Example

;Draws a rectangle that is blue (colour 2) with border thickness of 7, at co-ordinates 15,10 with a width of 200 and height of 150.
/drawrect @window 2 7 15 10 200 150
 
;Same as above but the corners are drawn using a 5x5 ellipse.
/drawrect -d @window 2 7 15 10 200 150 5 5
 
;Draws a filled green rectangle using an RGB colour value.
/drawrect -fr @window 65280 1 5 5 20 20

Compatibility

Added:

Added On:

Note: Individual switches were not taken into consideration.

See also

[Expand]
v · d · e mIRC commands list