[LIBART] Help



Dear All:

I compiled libart in vc++ 6.0 about 1 month age,but never get any result, The library is cool,but too mystery.

I used the code in the document and then :

 ArtSVP *path;
 unsigned char *buffer;

 path = make_path ();

 buffer = render_path (path);
 
 for(int x=0;x<HEIGHT;x++)
   for(int y=0;y<WIDTH;y+=3)
    ::SetPixel(dc.GetSafeHdc(),x,y,RGB(buffer[x*WIDTH+y],
    buffer[x*WIDTH+y+1],buffer[x*WIDTH+y+2]));
 art_free(buffer);
 art_free(path);

But no image got( see attachment). Anyone can help me? It is possible to email me some sample code? 

Thanks in advance.



Walker C





Attachment: libart.jpg
Description: JPEG image



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