Wx::Metafile - Implementation of the wxMetafile class of wxWindows


Wx-Metafile documentation  | view source Contained in the Wx-Metafile distribution.

Index


NAME

Top

Wx::Metafile - Implementation of the wxMetafile class of wxWindows

SYNOPSIS

Top

	my $mf = Wx::Metafile->new('./test.emf');
	# if it loads OK
	if ($mf->Ok)
	{
		# We create an empty bitmap
	    $bmp = Wx::Bitmap->new(100,100);
	    # And a temporary DC
	    $tmpdc = Wx::MemoryDC->new();
	    # Everything we do in the DC changes the bitmap
	    $tmpdc->SelectObject($bmp);
		# We 'play' it inside the DC
		$mf->Play($tmpdc, Wx::Rect->new(0,0,100,100));
	}

DESCRIPTION

Top

See for more information the wxPerl documentation that can be downloaded from the wxPerl website (http://wxperl.sf.net), which also contains the documentation for this class.

Mind you: Wx::Metafile works only on Win32 platforms. It won't do anything on other platforms. Although it's possible to configure wxWindows to support WMF's instead of EMF's, the Windows Metafile support in wxWindows is broken, and only Enhanced Metafiles will work.

AUTHOR

Top

	Jouke Visser
	jouke@cpan.org
	http://jouke.pvoice.org

COPYRIGHT

Top

SEE ALSO

Top

perl(1).


Wx-Metafile documentation  | view source Contained in the Wx-Metafile distribution.