Project

General

Profile

Drawsave » History » Version 8

Per Amundsen, 10/17/2022 11:36 AM

1 1 Per Amundsen
_Added in 1.9.0_
2
3 6 Per Amundsen
*/drawsave -bNqNSBFN <@window|&binvar> [x y w h] <filename>*
4 1 Per Amundsen
5
Saves the background picture of the specified picture @window to a file.
6
7
*Switches*
8
9 3 Per Amundsen
-bN - allows you to specify the bit depth of the saved file, which can be 1, 4, 8, 16, 24, or 32.
10 1 Per Amundsen
-qN - allows you to specify the quality of the jpeg file that is being saved, where N is between 1 and 100.
11
-S - Indicates [x y w h] is specified to save only a specific position and size of the picture. *(AdiIRC only)*
12 6 Per Amundsen
-B - Converts the picture window bitmap into a "base64":https://en.wikipedia.org/wiki/Base64 encoded string and stores it into &binvar. *(AdiIRC Only)*
13
.FN - Image format to save to. *(AdiIRC Only)* (default is PNG)
14 1 Per Amundsen
15
*Parameters*
16
17
<@window> - Window name to save from.
18 5 Per Amundsen
<&binvar> - Used with -B. *(AdiIRC Only)*
19 1 Per Amundsen
[x y w h] - The position and size from the picture to save, used with -S. *(AdiIRC only)*
20
<filename> - Filename to save to.
21 6 Per Amundsen
22 7 Per Amundsen
*Image Formats*
23 6 Per Amundsen
24
-F0 = .png
25
-F1 = .jpg
26
-F2 = .bmp
27 8 Per Amundsen
-F3 = .emf
28
-F4 = .exif
29
-F5 = .gif
30
-F6 = .ico
31
-F7 = .tiff
32
-F8 = .wmf