[Pipmak-Users] File IO with Pipmak and image manipulation.
Status: Alpha
Brought to you by:
cwalther
From: Andrea V. <and...@gm...> - 2007-03-26 08:07:53
|
Hi Chris, I have two questions for you. The first: I need to write and to read info from external file, I tried standard Lue IO lib without success: for line in io.lines(filename) do ... end and for line in file:lines() do ... end How I can do that? Second one: It would be difficult implement in pipmak a method to distort a patch in a perspective manner? That is, a function which deform a rectangular patch in a trapezial one, passing 4 arbitrary points that lie on the surface of a cubic face. This think would be very usefull, so I haven't to create with photoshop a lot of different views of the same patch, but I could generate those with script. Another useful method would be a function to crop a patch. Thank you for your answers Ciao. Andrea |