Commit 4b4e26d4 authored by Anuj Verma's avatar Anuj Verma Committed by Werner Lemberg

[graph] Add function to pass custom color for writing headers.

* graph/grfont.h, graph/grfont.c (grGotobitmapColor): New function.
parent 45ed2c66
2020-08-22 Anuj Verma <anujv@iitbhilai.ac.in>
[graph] Add function to pass custom color for writing headers.
* graph/grfont.h, graph/grfont.c (grGotobitmapColor): New function.
2020-08-22 Anuj Verma <anujv@iitbhilai.ac.in>
[ftsdf] Add main function.
......
......@@ -598,6 +598,18 @@
}
void
grGotobitmapColor( grBitmap* bitmap,
int r,
int g,
int b,
int a )
{
gr_text_bitmap = bitmap;
gr_color = grFindColor( bitmap, r, g, b, a );
}
void
grSetMargin( int right,
int top )
......
......@@ -9,6 +9,13 @@
void
grGotobitmap( grBitmap* bitmap );
void
grGotobitmapColor( grBitmap* bitmap,
int r,
int g,
int b,
int a );
void
grSetMargin( int right,
int top );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment