Re: libart clipping

>  Looking at the prototype for art_rgb_svp_aa:
>  void
>  art_rgb_svp_aa (const ArtSVP *svp,
>  		int x0, int y0, int x1, int y1,
>  		art_u32 fg_color, art_u32 bg_color,
>  		art_u8 *buf, int rowstride,
>  		ArtAlphaGamma *alphagamma);
>  do (x0,y0),(x1,y1) specify the clipping rectangle for the rendering
>  operation?

Not quite.  They specify the rectangle that your RGB buffer
represents, that is, the area that presumably needs repainting.  
(x0, y0) in your pixel coordinate space should map to the first pixel
in your buffer.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]