|
From: Ethan A M. <merritt@u.washington.edu> - 2006-11-21 15:10:46
|
On Monday 20 November 2006 10:01 pm, Daniel J Sebald wrote:
>
> Would it mean altering
>
> void (*image) __PROTO((unsigned, unsigned, coordval *, gpiPoint *, t_imagecolor));
>
> to include a pointer to a set of values representing a translation matrix?
>
> Or would a new terminal driver routine for a translation matrix
> that applies more generally be in order?
I think it wants to be a new terminal entry (the core code needs to be able
to test for it). But in some of the terminals (post, pdf) this will
essentially replace the current routine, which in turn becomes a one line
wrapper:
PS_image_rotate(M, N, *image, *corner, color_mode, double *matrix)
{ old code with a new twist }
PS_image(M, N, *image, *corner, color_mode)
{
static double identity[9] = {1,0,0, 0,1,0, 0,0,1};
PS_image_rotate(M, N, *image, *corner, color_mode, identity);
}
--
Ethan A Merritt
Biomolecular Structure Center
University of Washington, Seattle 98195-7742
|