exhibition PixelChannel.
Pict by Decept
12/10/2008
11/28/2008
Students Projects
presentation of the first projects made by the students in the workshop "objets communicants" in Ensad :
9/09/2008
Exposition Galerie Duplex du 6 sept au 11 octobre
Quelques photos de mes pièces exposées à la Galerie Duplex :
Et le montage de l'exposition :
......plus de photos ici : Flickr
Et le montage de l'exposition :
......plus de photos ici : Flickr
8/25/2008
8/04/2008
7/12/2008
7/09/2008
6/28/2008
paper toys
I'm working actually on a project of a CrafToys generator on Processing. Like my old project "Pince Vocale"
to produce some paper avatar, ready to manifest their opinion like this small Eniarofer with eniarof placards
I would like to print automatically the template in the Processing application. After some research on internet I've found my treasure, some function in the library java.awt.print
----------------------------------------------
a small function below, just for print the screen :
void printscreen()
{
try {
java.awt.print.PrinterJob pjob = java.awt.print.PrinterJob.getPrinterJob();
pjob.setJobName("monvisuel");
pjob.setCopies(1);
pjob.setPrintable(new java.awt.print.Printable() {
public int print(Graphics pg, java.awt.print.PageFormat pf, int pageNum) {
if (pageNum > 0)
return java.awt.print.Printable.NO_SUCH_PAGE;
superPaint(pg);
return java.awt.print.Printable.PAGE_EXISTS;
}
});
// comment the 2 line to avoid printer dialog box
if (pjob.printDialog() == false)
return;
pjob.print();
} catch (java.awt.print.PrinterException pe) {
}
}
void superPaint(Graphics g) {
super.paint(g);
}
----------------------------------------------
SOME good links about Papertoys :
papercritters
ShinTanaka Website
the big 3D papermodel website
to produce some paper avatar, ready to manifest their opinion like this small Eniarofer with eniarof placards
I would like to print automatically the template in the Processing application. After some research on internet I've found my treasure, some function in the library java.awt.print
----------------------------------------------
a small function below, just for print the screen :
void printscreen()
{
try {
java.awt.print.PrinterJob pjob = java.awt.print.PrinterJob.getPrinterJob();
pjob.setJobName("monvisuel");
pjob.setCopies(1);
pjob.setPrintable(new java.awt.print.Printable() {
public int print(Graphics pg, java.awt.print.PageFormat pf, int pageNum) {
if (pageNum > 0)
return java.awt.print.Printable.NO_SUCH_PAGE;
superPaint(pg);
return java.awt.print.Printable.PAGE_EXISTS;
}
});
// comment the 2 line to avoid printer dialog box
if (pjob.printDialog() == false)
return;
pjob.print();
} catch (java.awt.print.PrinterException pe) {
}
}
void superPaint(Graphics g) {
super.paint(g);
}
----------------------------------------------
SOME good links about Papertoys :
papercritters
ShinTanaka Website
the big 3D papermodel website
5/14/2008
5/07/2008
4/28/2008
Inscription à :
Articles (Atom)