Hey guys I'm pretty new to C, just looking to see how to display a image and some text to go along with it so far I can display in the image but cannot display the text at the same time.
Any ideas?
This is my source code below
Code:
#include <stdio.h>
#include <gd.h>
int main()
{
gdImagePtr gdImage = gdImageCreate( 100, 100 );
FILE *jpgFile = NULL;
int yellow;
gdImageColorAllocate( gdImage, 0, 0, 0 );
yellow = gdImageColorAllocate( gdImage, 255, 255, 0 );
gdImageFilledEllipse( gdImage, 20, 80, 20, 20, yellow );
jpgFile = fopen( "test.jpg", "wb" );
gdImageJpeg( gdImage, jpgFile, -1);
fclose( jpgFile );
gdImageDestroy( gdImage );
printf("test text\n");
}