Rev 7893 | Rev 7995 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7893 | Rev 7977 | ||
---|---|---|---|
Line 28... | Line 28... | ||
28 | dword img_decode = #aimg_decode; |
28 | dword img_decode = #aimg_decode; |
29 | dword img_destroy = #aimg_destroy; |
29 | dword img_destroy = #aimg_destroy; |
30 | dword img_draw = #aimg_draw; |
30 | dword img_draw = #aimg_draw; |
31 | dword img_create = #aimg_create; |
31 | dword img_create = #aimg_create; |
32 | dword img_encode = #aimg_encode; |
32 | dword img_encode = #aimg_encode; |
- | 33 | dword img_convert = #aimg_convert; |
|
Line 33... | Line 34... | ||
33 | 34 | ||
34 | //dword img_flip = #aimg_flip; |
35 | //dword img_flip = #aimg_flip; |
35 | //dword img_rotate = #aimg_rotate; |
36 | //dword img_rotate = #aimg_rotate; |
Line 42... | Line 43... | ||
42 | char aimg_decode[] = "img_decode"; |
43 | char aimg_decode[] = "img_decode"; |
43 | char aimg_destroy[] = "img_destroy"; |
44 | char aimg_destroy[] = "img_destroy"; |
44 | char aimg_draw[] = "img_draw"; |
45 | char aimg_draw[] = "img_draw"; |
45 | char aimg_create[] = "img_create"; |
46 | char aimg_create[] = "img_create"; |
46 | char aimg_encode[] = "img_encode"; |
47 | char aimg_encode[] = "img_encode"; |
- | 48 | char aimg_convert[] = "img_convert"; |
|
47 | //char aimg_flip[] = "img_flip"; |
49 | //char aimg_flip[] = "img_flip"; |
48 | //char aimg_rotate[] = "img_rotate "; |
50 | //char aimg_rotate[] = "img_rotate "; |
Line -... | Line 51... | ||
- | 51 | ||
- | 52 | //invoke img.scale, ebx, 0, 0, [ebx + Image.Width], [ebx + Image.Height], 0, LIBIMG_SCALE_TYPE_STRETCH, LIBIMG_SCALE_ALG_BILINEAR, edx, ecx |
|
49 | 53 | ||
50 | #define LIBIMG_FORMAT_BMP 1 |
54 | #define LIBIMG_FORMAT_BMP 1 |
51 | #define LIBIMG_FORMAT_ICO 2 |
55 | #define LIBIMG_FORMAT_ICO 2 |
52 | #define LIBIMG_FORMAT_CUR 3 |
56 | #define LIBIMG_FORMAT_CUR 3 |
53 | #define LIBIMG_FORMAT_GIF 4 |
57 | #define LIBIMG_FORMAT_GIF 4 |
Line 234... | Line 238... | ||
234 | } |
238 | } |
235 | } |
239 | } |
236 | } |
240 | } |
237 | } |
241 | } |
Line -... | Line 242... | ||
- | 242 | ||
- | 243 | :dword convert_image(dword _image_pointer, _w, _h, _path) |
|
- | 244 | { |
|
- | 245 | img_convert stdcall(_image_pointer, 0, Image_bpp32, 0, 0); |
|
- | 246 | if (EAX!=0) |
|
- | 247 | mov [image_converted], eax |
|
- | 248 | } |
|
238 | 249 | ||
239 | #ifndef INCLUDE_LIBIMG_LOAD_SKIN_H |
250 | #ifndef INCLUDE_LIBIMG_LOAD_SKIN_H |
240 | #include "../lib/patterns/libimg_load_skin.h" |
251 | #include "../lib/patterns/libimg_load_skin.h" |