Project

General

Profile

Pix » History » Version 1

iri, 03/25/2011 07:40 PM

1 1 iri
h1. Pix
2
3
Images resources.
4
5
{{toc}}
6
7
h2. _gtkPixNew
8
9
create a new pix object
10
11
Prototype : *fun [Chn P I [I I I]] ObjGtkPix*
12
13
table.
14
|*channel*|Chn|a channel|
15
|*filename*|P|an image filename|
16
|*mode*|I|Mode. Should be at 0.|
17
|*tuple*|[I I I]|the width (or nil to not constraint it),|
18
| | |the height (or nil to not constraint it),|
19
| | |the ratio (1 to keep it)|
20
21
+Return+ : ObjGtkPix : a new pix object or nil if an error occurs
22
23
h2. _gtkPixFree
24
25
Destroys a pix object
26
27
Prototype : *fun [ObjGtkPix] I*
28
29
+Return+ : I : always 0 except if error, it returns nil
30
31
h2. _gtkPixScale
32
33
Scale
34
35
Prototype : *fun [ObjGtkPix I I I I] ObjGtkPix*
36
37
table.
38
|*pix*|ObjGtkPix|a valid pix object| |
39
|*width*|I|the new width| |
40
|*height*|I|the new height| |
41
|*mode*|I|a value at your choice :|SCOL_GTK_PIX_INTERP_BILINEAR (default) : |
42
| | | |SCOL_GTK_PIX_INTERP_NEAREST : |
43
| | | |SCOL_GTK_PIX_INTERP_TILES : |
44
| | | |SCOL_GTK_PIX_INTERP_HYPER : |
45
|*flag*|I|if 1, the pix object _pix_ will be destroyed.|If 0, the pix object _pix_ will be kept.|
46
47
+Return+ : ObjGtkPix : a *new* pix object or nil if an error occurs.
48
49
h2. _gtkPixScaleEx
50
51
Not implemented yet.
52
53
+Return+ : always nil.
54
55
56
Return [[Api]]