embedxpm man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

EMBEDXPM(1)	      User Contributed Perl Documentation	   EMBEDXPM(1)

NAME
       embedxpm - embed xpm pictures into perl source

SYNOPSIS
	embedxpm picture.xpm perl_source picture_name

DESCRIPTION
       embedxpm can be used to embed xpm pictures directly into a perl
       program. To do this, your program source has to contain some markers
       (in the form of comments) that describe the position where the picture
       should be inserted.  To only insert the xpm data, use this form:

	#%XPM:<name of xpm>%
	<your xpm data goes here>
	#%XPM%<what to attach to the end of the data>

       Here is an example (taken from the Gimp/PDB program):

	C<# create the logo pixmap for the given widget
	sub create_logo($) {
	   new Gtk::Pixmap(Gtk::Gdk::Pixmap->create_from_xpm_d(
	      $_[0]->window,
	      $_[0]->style->black,
	      #%XPM:logo%
	      'xpm data', 'xpm data...',...
	      #%XPM%
	   ))
	}>

       To insert the xpm with the name example.xpm into this source you would
       have to use the following commandline:

	embedxpm example.xpm source.pl logo

       WARNING: embedxpm happily overwrites your source, without leaving a
       backup-copy around(!). If anything goes wrong (for example when you
       left out the end comment) your source may be lost, so better make a
       backup before. I am not responsible for your data-loss!

SWITCHES
       None ;)

AUTHOR
       Marc Lehmann <pcg@goof.com>

POD ERRORS
       Hey! The above document had some coding errors, which are explained
       below:

       Around line 3:
	   =cut found outside a pod block.  Skipping to next block.

perl v5.20.2			  2014-03-26			   EMBEDXPM(1)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net