Contents | Index | < Browse | Browse >
A Code Examples

  Hello World:
  +-----------------------------------------------------------------------------
  | 
  | Print "Hello World!"                    ; console output
  | End                                     ; end of program
  |
  +-----------------------------------------------------------------------------

  Load, resize and save an image (via Includes):
  +-----------------------------------------------------------------------------
  |
  | XINCLUDE "image.include.bb2"               ; use graphics.include
  |
  | image_Load{0,"DH0:Pics/image.png"}         ; load from disk
  | image_Resize{1,0,800,600}                  ; resize to 800x600 pixels
  | image_Save{1,"DH0:Pics/image.jpg",@"JPEG"} ; save as JPEG
  |
  | End                                        ; end of program
  |
  +-----------------------------------------------------------------------------
  Note: Because the images are AmiBlitz³ maintained object, we don't have to free them.
        AmiBlitz³ is freeing it on "End".


Contents | Index | < Browse | Browse >