Monday, December 11th 2017, 11:55pm UTC+1

You are not logged in.

  • Login
  • Register

Date of registration: Mar 14th 2012

Posts: 6

1

Wednesday, May 9th 2012, 9:27am

Stream Glyph Display

Hi
I have one data buffer (pointer) containing font glyph as in example case for char A
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
0,0,0,0,0,0,0,0,93,116,116,107,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,25,252,255,255,255,49,0,0,0,0,0,0,0,0,0,0
0,0,0,0,0,0,0,119,255,255,255,255,144,0,0,0,0,0,0,0,0,0
0,0,0,0,0,0,0,215,255,255,255,255,233,4,0,0,0,0,0,0,0,0
0,0,0,0,0,0,58,255,255,249,217,255,255,77,0,0,0,0,0,0,0
0,0,0,0,0,0,155,255,255,173,127,255,255,171,0,0,0,0,0,0
0,0,0,0,0,10,242,255,255,80,47,255,255,248,17,0,0,0,0,0
0,0,0,0,0,94,255,255,236,5,0,222,255,255,104,0,0,0,0,0,
0,0,0,0,0,192,255,255,149,0,0,143,255,255,198,0,0,0,0,0
0,0,0,0,35,254,255,255,56,0,0,63,255,255,255,37,0,0,0,0
0,0,0,0,131,255,255,218,0,0,0,3,235,255,255,131,0,0,0,0
0,0,0,2,226,255,255,125,0,0,0,0,159,255,255,223,1,0,0,0
0,0,0,70,255,255,254,32,0,0,0,0,80,255,255,255,64,0,0,0
0,0,0,168,255,255,194,0,0,0,0,0,10,246,255,255,158,0,0,
0,0,17,248,255,255,167,92,92,92,92,92,92,213,255,255,242
0,0,107,255,255,255,255,255,255,255,255,255,255,255,255
0,0,204,255,255,255,255,255,255,255,255,255,255,255,255
0,46,255,255,255,255,255,255,255,255,255,255,255,255,255
0,143,255,255,235,23,20,20,20,20,20,20,20,20,45,254,255,
5,235,255,255,141,0,0,0,0,0,0,0,0,0,0,194,255,255,212,0,
82,255,255,255,41,0,0,0,0,0,0,0,0,0,0,103,255,255,255,51
180,255,255,197,0,0,0,0,0,0,0,0,0,0,0,17,249,255,255,146
252,255,255,96,0,0,0,0,0,0,0,0,0,0,0,0,176,255,255,235,5
255,255,241,10,0,0,0,0,0,0,0,0,0,0,0,0,85,255,255,255,79
232,232,142,0,0,0,0,0,0,0,0,0,0,0,0,0,8,221,232,232,153,0
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0

Is there any way by which I can display this dataBuffer stream using Segger 5.00 API's

Thanks in advance
techEmbedded

SEGGER - Adrian

Super Moderator

Date of registration: May 26th 2009

Posts: 994

2

Wednesday, May 9th 2012, 3:10pm

Hello techEmbedded,

The simpliest way of doing this should be creating a Memory Device and updating it with color information and the alpha values provided by your data buffer. Use the function GUI_MEMDEV_GetDataPtr() to be able to manipulate the data of the Memory Device directly.

If you have any further questions, please let me know.

Best regards,
Adrian

Similar threads