12-17-2010
You have lots of work to do to programmatically convert an XImage to PNG or any one of the other public formats. Best go explore what existing libraries such as Cairo do. For example see _get_image_surface() in cairo-xlib-surface.c.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
When I create filesystems in AIX i often get confused(using smit)
When you specify size in aix, it is asked like this
SIZE of file system (in 512-byte blocks)
I never seem to grasp this, what is the equation to get say
500mb? Or is there a program anyone knows of that does this, like a... (1 Reply)
Discussion started by: csaunders
1 Replies
2. Shell Programming and Scripting
Hello!
I'm desperately trying to write a makefile that converts and scales jpeg files to png files in subdirectories
I want to use netpbm, so I just need the commands:
anytopnm
pnmscale
pnmtopng
For various reasons i want to use a makefile. This is the first time i use the make tool... (1 Reply)
Discussion started by: henningbaer
1 Replies
3. Shell Programming and Scripting
Hi guys
I'm relativley new to Perl, and have not touched html before, im trying to write a cgi script that prints all images on a single html page from a given directory. Im using perl to gather stats, rrdtool to update and create graphs now i just need to print these graphs all onto 1 index.cgi... (3 Replies)
Discussion started by: jeffersno1
3 Replies
4. Programming
im trying to take a 24 BPP screen cap and save it to bitmap, but seems like it XImage is always 32 BPP, the value 0x00FFFFFF supposed to be 24 !
whenever i change bmpInfoHeader.biBitCount to 24, the image gets messed up..
here is the code im using
typedef struct tagBITMAPFILEHEADER {... (5 Replies)
Discussion started by: JonhyM
5 Replies
5. Shell Programming and Scripting
Hi guys. I will be frequently needing to convert .jpg files to 183x183 .png thumbnails. I can't quite seem to wrap my head around how to make a for loop to do this.
With the help of my friend (who may have mislead me, I'm quite confused) I've got this.
This is bash
the command is: pngify... (3 Replies)
Discussion started by: Drayol
3 Replies
6. Windows & DOS: Issues & Discussions
Well I searched the net with varying success, but it seems kinda hard to find a one/max 2 lined command to:
strip all *.png files in the folder from their first two characters.
Any help is appreciated.
In DOS commandline of course... (17 Replies)
Discussion started by: pasc
17 Replies
7. Shell Programming and Scripting
I use sendmail to send html emails, my script works perfect and sends email with plain text attachment.
Now i need to attache png file to the email and this attachment part is not working.
(
echo "From: $FROM"
echo "To: $TO"
echo "MIME-Version: 1.0"
echo "Subject: $SUBJECT"
echo... (4 Replies)
Discussion started by: posner
4 Replies
8. Shell Programming and Scripting
Need assistance in using the below script and having multiple png file attachments in the same script . Your inputs are appreciated. I dont have uuencode , I use either mailx, sendmail, mpack .
( echo "to: samplemail@somewhere.com"
echo "from: samplemail@elsewhere.com"
echo "subject:... (2 Replies)
Discussion started by: ajayram_arya
2 Replies
9. Shell Programming and Scripting
I have Excel file with the below three columns, i need your expertise in converting this to .csv file delimiter "|"
Excel -
Serial Number Serial Name Serial Brand
111 test sample
123 test2 sample1
134 ... (9 Replies)
Discussion started by: kiran_hp
9 Replies
LEARN ABOUT DEBIAN
gtk2::gdk::cairo::context
Gtk2::Gdk::Cairo::Context(3pm) User Contributed Perl Documentation Gtk2::Gdk::Cairo::Context(3pm)
NAME
Gtk2::Gdk::Cairo::Context
HIERARCHY
Cairo::Context
+---- Gtk2::Gdk::Cairo::Context (Perl subclass)
DESCRIPTION
This is some inter-operation between Cairo (see Cairo) and Gdk things.
A "Gtk2::Gdk::Cairo::Context" lets Cairo draw on a Gdk drawable (window or pixmap). It's a Perl-level subclass of "Cairo::Context" and the
various functions below can be used as methods on it.
The methods can also be used on other "Cairo::Context" as plain functions. For example "set_source_pixbuf" can setup to draw from a
"Gtk2::Gdk::Pixbuf" to any Cairo context,
my $cr = Cairo::Context->create ($surface);
Gtk2::Gdk::Cairo::Context::set_source_pixbuf ($cr, $pixbuf, $x,$y);
$cr->paint;
METHODS
gdkcr = Gtk2::Gdk::Cairo::Context->create ($drawable)
o $drawable (Gtk2::Gdk::Drawable)
$gdkcr->rectangle ($rectangle)
$gdkcr->rectangle ($x, $y, $width, $height)
Gtk2::Gdk::Cairo::Context::rectangle ($anycr, $rectangle)
o $rectangle (Gtk2::Gdk::Rectangle)
The 4-argument x,y,width,height is the base Cairo::Context style. This extends to also take a "Gtk2::Gdk::Rectangle".
$gdkcr->region ($region)
Gtk2::Gdk::Cairo::Context::region ($anycr, $region)
o $region (Gtk2::Gdk::Region)
$gdkcr->reset_clip ($drawable)
Gtk2::Gdk::Cairo::Context::reset_clip ($anycr, $drawable)
o $drawable (Gtk2::Gdk::Drawable)
Since: gtk+ 2.18
$gdkcr->set_source_color ($color)
Gtk2::Gdk::Cairo::Context::set_source_color ($anycr, $color)
o $color (Gtk2::Gdk::Color)
$gdkcr->set_source_pixbuf ($pixbuf, $pixbuf_x, $pixbuf_y)
Gtk2::Gdk::Cairo::Context::set_source_pixbuf ($anycr, $pixbuf, $pixbuf_x, $pixbuf_y)
o $pixbuf (Gtk2::Gdk::Pixbuf)
o $pixbuf_x (double)
o $pixbuf_y (double)
$gdkcr->set_source_pixmap ($pixmap, $pixmap_x, $pixmap_y)
Gtk2::Gdk::Cairo::Context::set_source_pixmap ($anycr, $pixmap, $pixmap_x, $pixmap_y)
o $pixmap (Gtk2::Gdk::Pixmap)
o $pixmap_x (double)
o $pixmap_y (double)
Since: gtk+ 2.10
SEE ALSO
Gtk2
COPYRIGHT
Copyright (C) 2003-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
perl v5.14.2 2012-05-27 Gtk2::Gdk::Cairo::Context(3pm)