Actions
  Pix » History » Revision 2
      « Previous |
    Revision 2/38
      (diff)
      | Next »
    
    iri, 03/25/2011 07:41 PM 
    
    
Pix¶
Images resources.
- Table of contents
- Pix
_gtkPixNew¶
create a new pix object
Prototype : fun [Chn P I [I I I]] ObjGtkPix
| channel | Chn | a channel | 
| filename | P | an image filename | 
| mode | I | Mode. Should be at 0. | 
| tuple | [I I I] | the width (or nil to not constraint it), | 
| the height (or nil to not constraint it), | ||
| the ratio (1 to keep it) | 
Return : ObjGtkPix : a new pix object or nil if an error occurs
_gtkPixFree¶
Destroys a pix object
Prototype : fun [ObjGtkPix] I
Return : I : always 0 except if error, it returns nil
_gtkPixScale¶
Scale
Prototype : fun [ObjGtkPix I I I I] ObjGtkPix
| pix | ObjGtkPix | a valid pix object | |
| width | I | the new width | |
| height | I | the new height | |
| mode | I | an algorithm at your choice : | SCOL_GTK_PIX_INTERP_BILINEAR (default) : | 
| SCOL_GTK_PIX_INTERP_NEAREST : | |||
| SCOL_GTK_PIX_INTERP_TILES : | |||
| SCOL_GTK_PIX_INTERP_HYPER : | |||
| flag | I | if 1, the pix object pix will be destroyed. | If 0, the pix object pix will be kept. | 
Return : ObjGtkPix : a new pix object or nil if an error occurs.
_gtkPixScaleEx¶
Not implemented yet.
Return : always nil.
Return Api
Updated by iri over 14 years ago · 38 revisions