Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7707 Alex2003 1
2
xmlns:o="urn:schemas-microsoft-com:office:office"
3
xmlns:w="urn:schemas-microsoft-com:office:word"
4
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml"
5
xmlns="http://www.w3.org/TR/REC-html40">
6
 
7
8
9
10
11
12
13
32
33
34
333
1042
1072
1073
 
1074
1075
 
1076
1077
 
1078

1081
href="../KolibriOS%20help%20system%20Engl/SF%20KOS.htm">Back to main
1082
class=MsoHyperlink>

1083
 
1084

 

1086
 
1087

Function 65 -

1090
display the image with the palette in the window
1091
style='font-size:18.0pt;font-family:"Arial","sans-serif";mso-ansi-language:
1092
EN-US'> 

1093
 
1094

Options:

1098
 
1099

 

1102
class=SpellE>eax
1104
lang=EN-US style='font-size:12.0pt;font-family:"Arial","sans-serif";mso-ansi-language:
1105
EN-US'> = 65 - function number

1106
 
1107

 

1110
class=SpellE>ebx = pointer to the image

1111
 
1112

 

1115
class=SpellE>ecx = [size on axis x]*65536 +
1116
[size on axis y]

1117
 
1118

 

1121
class=SpellE>edx = [coordinate on axis x]*65536
1122
+ [coordinate on axis y]

1123
 
1124

 

1127
class=SpellE>esi = number of bits per pixel,
1128
should be 1,2,4,8,9,15,16,24 or 32

1129
 
1130

 

1133
class=SpellE>edi = pointer to palette (2 to the
1134
power esi colors 0x00RRGGBB); ignored when 
1135
class=SpellE>esi > 8

1136
 
1137

 

1140
class=SpellE>ebp = offset of each successive
1141
row of image data from the previous row

1142
 
1143

 

1146
 
1147

Return value: the function does not return a value

1150
 
1151

 

1154
 
1155

Comments:

1158
 
1159

1162
style='mso-spacerun:yes'>  Image coordinates are the coordinates of the
1163
upper left corner of the image relative to the window.

1164
 
1165

1168
style='mso-spacerun:yes'>  Image format with 1 bit per pixel: each byte
1169
of the image, except perhaps the last bytes of the lines, contains information
1170
about the color of 8 pixels, the highest bit
1171
corresponds to the first pixel.

1172
 
1173

1176
style='mso-spacerun:yes'>  Image format with 2 bits per pixel: each byte
1177
of the image, except perhaps the last bytes of the lines, contains information
1178
about the color of 4 pixels, the older two bits
1179
correspond to the first pixel.

1180
 
1181

1184
style='mso-spacerun:yes'>  Image format with 4 bits per pixel: each byte
1185
of the image, except the last bytes of the lines (if the width of the image is
1186
odd), contains information about the color of 2 pixels, the highest tetrad
1187
corresponds to the first pixel.

1188
 
1189

1192
style='mso-spacerun:yes'>  Image format with 8 bits per pixel: each byte
1193
of the image is treated as an index in the palette.

1194
 
1195

1198
style='mso-spacerun:yes'>  Image format with 9 bits per pixel: each byte
1199
of the image (8 bits) represents the intensity of gray for a single pixel, so
1200
this type of image is identical to 8 bits per pixel without a palette.

1201
 
1202

1205
style='mso-spacerun:yes'>  Image format with 15 bits per pixel: the
1206
color of each pixel is encoded as (in bit representation) 0RRRRRGGGGGBBB - 5
1207
pixels per color.

1208
 
1209

1212
style='mso-spacerun:yes'>  Image format with 16 bits per pixel: the
1213
color of each pixel is encoded as RRRRGGGGGGBBBB (scheme 5+6+5).

1214
 
1215

1218
style='mso-spacerun:yes'>  Image format with 24 bits per pixel: the
1219
color of each pixel is encoded in three bytes - sequentially blue, green, red
1220
components of the color.

1221
 
1222

1225
style='mso-spacerun:yes'>  Image format with 32 bits per pixel: similar
1226
to 24, only there is still an ignored fourth byte.

1227
 
1228

1231
style='mso-spacerun:yes'>  Calling function 7 is equivalent to calling
1232
this function with parameters esi=24, 
1233
class=SpellE>ebp=0.

1234
 
1235

 

1238
 
1239

Constants for registers:

1242
 
1243

 

1246
class=SpellE>eax - SF_PUT_IMAGE_EXT (65)

1247
 
1248
1249
 
1250
1251
 
1252