Prima and PDL

From: Michael Peuser h <mpeuser_at_t-online.de>
Date: Mon, 3 Feb 2003 23:20:40 +0100
To: <prima_at_prima.eu.org>

Hi,

because PDL seems to have no graphics in Windows, I try to visualize some "pidls" with Prima.

# $a is a (3,$N,$N) piddle
  
foreach my $x (0..$N-1) {
 foreach my $y (0..$N-1) {
          my @rgb=list ($a->slice(":,($x),($y)"));
   $bild[$x][$y] =256*(256*$rgb[0]+$rgb[1])+$rgb[2]
                     ## so it can be used with color and pixel
     }
   }

So I habe something to feed into a Prima Canvas. This takes horrible time; in fact it is only slightly faster than
outputting the piddle as picture and importing it as Prima image....

'list' is the worst culprit, but it adds up.....

Any suggestions? It would be phantastic to convert a piddle into an image directly; cann anyone give me a hint about formats?
I have no time to look through a host of C-sources, but I am able to do some C-programming..

Kindly Mike
Received on Mon 03 Feb 2003 - 23:20:10 CET

This archive was generated by hypermail 2.2.0 : Sat 19 Mar 2011 - 18:35:04 CET