FreeBSD Bugzilla – Attachment 197108 Details for
Bug 231057
graphics/gd: Wrong renderig of .gif
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Simple Test case in C
test.c (text/plain), 592 bytes, created by
Dirk Meyer
on 2018-09-15 11:55:59 UTC
(
hide
)
Description:
Simple Test case in C
Filename:
MIME Type:
Creator:
Dirk Meyer
Created:
2018-09-15 11:55:59 UTC
Size:
592 bytes
patch
obsolete
> >#include <stdio.h> >#include "gd.h" > >int main( int argc, char **argv ) >{ > FILE *fp; > gdImagePtr im; > int bgcolor; > int fgcolor; > int brect[8]; > > im = gdImageCreate(200, 200); > bgcolor = gdImageColorAllocate(im, 255, 255, 255); > fgcolor = gdImageColorAllocate(im, 0, 255, 0); > gdImageLine(im, 0, 0, 100, 100, fgcolor); > gdImageStringFT(NULL, &brect[0], fgcolor, > "./BADABB__.TTF", 24.0, 0.0, 0, 0, "Test"); > gdImageStringFT(im, &brect[0], fgcolor, > "./BADABB__.TTF", 24.0, 0.0, 100, 100, "Test"); > fp = fopen( "test.gif", "wb+" ); > gdImageGif(im, fp); > fclose(fp); > gdImageDestroy(im); >} >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 231057
:
196745
|
196746
| 197108 |
197185
|
197186
|
197264
|
197268
|
197269