Project

General

Profile

Drawsave » History » Version 6

Per Amundsen, 10/17/2022 11:32 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
*Formats*
23
24
-F0 = .png
25
-F1 = .jpg
26
-F2 = .bmp
27
-F3 = .Emf
28
-F4 = .Exif
29
-F5 = .Gif
30
-F6 = .Ico
31
-F7 = .Tiff
32
-F8 = .Wmf