kolibrios/programs/develop/examples/clipboard/clipboard_container_eng.txt
Marat Zakiyanov (Mario79) 4c37acea60 Additions and changes to the documentation for the clipboard.
git-svn-id: svn://kolibrios.org@4343 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-12-11 19:37:52 +00:00

35 lines
1.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Сontents of container from clipboard
1. First dword - contains the total length of data in the container
2. Second dword - indicates the type of data:
0 = Text
1 = Highlighted text block
2 = Image
3 = RAW
4 and above reserved
2.1 Text
Data in the third dword contain type:
0 = UTF
1 = 0866
2 = 1251
3 and above reserved
2.2 Highlighted text block
Differs from 2.1 - that all rows have the same length.
2.3 Image
Third dword - X size
Fourth dword - Y size
Fifth dword - bit color depth (8, 16, 24, 32, 48, 64)
Sixth dword - Pointer to the palette (the offset from the beginning of the file).
If the palette is not set then value 0
Seventh dword - The size of the palette, the maximum value of 256 * 4 = 1024 bytes.
If the palette is not set then value 0
Eighth dword - A pointer to the pixel data for the R, G, B.
Ninth dword - The size of the data for pixels.
2.4 RAW
Can contain any data, because content at the discretion of the programmer