Rev 8389 | Rev 8407 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8389 | Rev 8396 | ||
---|---|---|---|
Line 17... | Line 17... | ||
17 | //library |
17 | //library |
18 | dword libimg = #alibimg; |
18 | dword libimg = #alibimg; |
19 | char alibimg[] = "/sys/lib/libimg.obj"; |
19 | char alibimg[] = "/sys/lib/libimg.obj"; |
Line 20... | Line 20... | ||
20 | 20 | ||
21 | dword libimg_init = #alibimg_init; |
- | |
22 | dword img_is_img = #aimg_is_img; |
- | |
23 | dword img_to_rgb2 = #aimg_to_rgb2; |
21 | dword libimg_init = #alibimg_init; |
24 | dword img_decode = #aimg_decode; |
22 | dword img_decode = #aimg_decode; |
25 | dword img_destroy = #aimg_destroy; |
23 | dword img_destroy = #aimg_destroy; |
26 | dword img_draw = #aimg_draw; |
24 | dword img_draw = #aimg_draw; |
27 | dword img_create = #aimg_create; |
25 | dword img_create = #aimg_create; |
28 | dword img_encode = #aimg_encode; |
26 | dword img_encode = #aimg_encode; |
29 | dword img_convert = #aimg_convert; |
27 | dword img_convert = #aimg_convert; |
30 | dword img_from_file = #aimg_from_file; |
- | |
- | 28 | dword img_from_file = #aimg_from_file; |
|
- | 29 | dword img_blend = #aimg_blend; |
|
- | 30 | //dword img_resize = #aimg_resize; |
|
- | 31 | //dword img_is_img = #aimg_is_img; |
|
- | 32 | //dword img_to_rgb2 = #aimg_to_rgb2; |
|
31 | 33 | //dword img_scale = #aimg_scale; |
|
32 | //dword img_flip = #aimg_flip; |
34 | //dword img_flip = #aimg_flip; |
- | 35 | //dword img_rotate = #aimg_rotate; |
|
33 | //dword img_rotate = #aimg_rotate; |
36 | |
Line 34... | Line 37... | ||
34 | $DD 2 dup 0 |
37 | $DD 2 dup 0 |
35 | 38 | ||
36 | //import libimg , \ |
- | |
37 | char alibimg_init[] = "lib_init"; |
- | |
38 | char aimg_is_img[] = "img_is_img"; |
39 | //import |
39 | char aimg_to_rgb2[] = "img_to_rgb2"; |
40 | char alibimg_init[] = "lib_init"; |
40 | char aimg_decode[] = "img_decode"; |
41 | char aimg_decode[] = "img_decode"; |
41 | char aimg_destroy[] = "img_destroy"; |
42 | char aimg_destroy[] = "img_destroy"; |
42 | char aimg_draw[] = "img_draw"; |
43 | char aimg_draw[] = "img_draw"; |
43 | char aimg_create[] = "img_create"; |
44 | char aimg_create[] = "img_create"; |
44 | char aimg_encode[] = "img_encode"; |
45 | char aimg_encode[] = "img_encode"; |
- | 46 | char aimg_convert[] = "img_convert"; |
|
- | 47 | char aimg_from_file[] = "img_from_file"; |
|
- | 48 | char aimg_blend[] = "img_blend"; |
|
- | 49 | //char aimg_resize[] = "img_resize"; |
|
- | 50 | //char aimg_is_img[] = "img_is_img"; |
|
45 | char aimg_convert[] = "img_convert"; |
51 | //char aimg_to_rgb2[] = "img_to_rgb2"; |
46 | char aimg_from_file[] = "img_from_file"; |
52 | //char aimg_scale[] = "img_scale"; |
Line 47... | Line -... | ||
47 | //char aimg_flip[] = "img_flip"; |
- | |
48 | //char aimg_rotate[] = "img_rotate "; |
- | |
49 | 53 | //char aimg_flip[] = "img_flip"; |
|
50 | //invoke img.scale, ebx, 0, 0, [ebx + Image.Width], [ebx + Image.Height], 0, LIBIMG_SCALE_TYPE_STRETCH, LIBIMG_SCALE_ALG_BILINEAR, edx, ecx |
54 | //char aimg_rotate[] = "img_rotate"; |
51 | 55 | ||
52 | #define LIBIMG_FORMAT_BMP 1 |
56 | #define LIBIMG_FORMAT_BMP 1 |
53 | #define LIBIMG_FORMAT_ICO 2 |
57 | #define LIBIMG_FORMAT_ICO 2 |
Line 102... | Line 106... | ||
102 | 106 | ||
103 | :void libimg_image::set_vars() |
107 | :void libimg_image::set_vars() |
104 | { |
108 | { |
105 | $push edi |
109 | $push edi |
106 | EDI = image; |
110 | EDI = image; |
107 | checksum = DSWORD[EDI]; |
111 | //checksum = ESDWORD[EDI]; |
108 | w = ESDWORD[EDI+4]; |
112 | w = ESDWORD[EDI+4]; |
109 | h = ESDWORD[EDI+8]; |
113 | h = ESDWORD[EDI+8]; |
110 | next = ESDWORD[EDI+12]; |
114 | //next = ESDWORD[EDI+12]; |
111 | previous = ESDWORD[EDI+16]; |
115 | //previous = ESDWORD[EDI+16]; |
112 | imgsrc = ESDWORD[EDI+24]; |
116 | imgsrc = ESDWORD[EDI+24]; |
113 | palette = ESDWORD[EDI+28]; |
117 | //palette = ESDWORD[EDI+28]; |
114 | extended = ESDWORD[EDI+32]; |
118 | //extended = ESDWORD[EDI+32]; |
115 | flags = ESDWORD[EDI+36]; |
119 | //flags = ESDWORD[EDI+36]; |
116 | delay = ESDWORD[EDI+40]; |
120 | //delay = ESDWORD[EDI+40]; |
117 | $pop edi |
121 | $pop edi |
Line 118... | Line 122... | ||
118 | } |
122 | } |
119 | 123 |