NAME

IUP::Canvas::FileBitmap - [special] 2D drawing canvas storing the result into bitmap image file (PNG, JPG, GIF, ...)

SYNOPSIS

use IUP::Constants ':cd';
use IUP::Canvas::FileBitmap;

my $cnv = IUP::Canvas::FileBitmap->new(width=>400, height=>400);

$cnv->cdForeground(CD_RED);
$cnv->cdBox(0, 200, 0, 400);

$cnv->cdForeground(CD_BLACK);
$cnv->cdLineStyle(CD_DOTTED);
$cnv->cdArc(200,200,180,380,0,360);

# BEWARE: this is different from IUP::Canvas::FileVector
$cnv->cdDumpBitmap("output.png", "PNG");
$cnv->cdDumpBitmap("output.jpg", "JPG");

$cnv->cdKillCanvas;

Supported constructors: XXX-TODO add some description

IUP::Canvas::FileBitmap->new( bitmap=>'file.png' );
IUP::Canvas::FileBitmap->new( bitmap=>IUP::Canvas::Bitmap->new(type=>CD_RGB, pixels=>$pixels) ); 
IUP::Canvas::FileBitmap->new( bitmap=>$b, resolution=>$r );
IUP::Canvas::FileBitmap->new( width=>$w, height=>$h );
IUP::Canvas::FileBitmap->new( width=>$w, height=>$h, resolution=$r, has_alpha=$a ); 

DESCRIPTION

IUP::Canvas::FileVector is derived from IUP::Canvas and offers all 2D drawing related methods:

SEE ALSO

IUP::Canvas, IUP::Canvas::FileVector

8 POD Errors

The following errors were encountered while parsing the POD:

Around line 51:

alternative text 'Methods - Primitives / Marks' contains non-escaped | or /

Around line 53:

alternative text 'Methods - Primitives / Lines' contains non-escaped | or /

Around line 55:

alternative text 'Methods - Primitives / Polygons' contains non-escaped | or /

Around line 57:

alternative text 'Methods - Primitives / Filled Areas' contains non-escaped | or /

Around line 59:

alternative text 'Methods - Primitives / Text' contains non-escaped | or /

Around line 61:

alternative text 'Methods - Primitives / Vector Text' contains non-escaped | or /

Around line 63:

alternative text 'Methods - Primitives / Client Images' contains non-escaped | or /

Around line 65:

alternative text 'Methods - Primitives / Server Images' contains non-escaped | or /