[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2-demos] GSoC-2020-anuj acdfc05 1/2: [graph] Add a function to
From: |
Anuj Verma |
Subject: |
[freetype2-demos] GSoC-2020-anuj acdfc05 1/2: [graph] Add a function to pass custom color for writing headers. |
Date: |
Sat, 22 Aug 2020 02:00:04 -0400 (EDT) |
branch: GSoC-2020-anuj
commit acdfc05e0b11f4401d118809c26fdc456c3c13e7
Author: Anuj Verma <anujv@iitbhilai.ac.in>
Commit: Anuj Verma <anujv@iitbhilai.ac.in>
[graph] Add a function to pass custom color for writing headers.
* graph/grfont.* (grGotobitmapColor): The function takes a custom color and
uses
that to write the headers.
---
graph/grfont.c | 12 ++++++++++++
graph/grfont.h | 7 +++++++
2 files changed, 19 insertions(+)
diff --git a/graph/grfont.c b/graph/grfont.c
index 5f5af56..0170be0 100644
--- a/graph/grfont.c
+++ b/graph/grfont.c
@@ -328,6 +328,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 )
{
diff --git a/graph/grfont.h b/graph/grfont.h
index 676bd90..3b5d41f 100644
--- a/graph/grfont.h
+++ b/graph/grfont.h
@@ -12,6 +12,13 @@
grGotobitmap( grBitmap* bitmap );
void
+ grGotobitmapColor( grBitmap* bitmap,
+ int r,
+ int g,
+ int b,
+ int a );
+
+ void
grSetMargin( int right,
int top );
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2-demos] GSoC-2020-anuj acdfc05 1/2: [graph] Add a function to pass custom color for writing headers.,
Anuj Verma <=