Using a graphic library

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using a graphic library

2,295 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by sipel_tp on Thu Jun 14 18:17:43 MST 2012
Is there any other graphic library besides emWIN and Swim for the LPC1788?
0 Kudos
Reply
10 Replies

2,243 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by sipel_tp on Fri Jun 22 05:22:52 MST 2012

Quote: james
Woah slow down bro. Heres a Pic!

[IMG]http://a2.sphotos.ak.fbcdn.net/hphotos-ak-ash4/484360_480334401992118_1671630992_n.jpg[/IMG]

Yup! You can!

This is 4.3" LCD 480x272
I am using swim_put_text_xy();
The font I am using here is free droidsans76.

My source code:
    swim_set_font(&G_win, &font_lpc_droidsansr76);
    swim_put_text_xy(&G_win, "76 PIXEL", 80, 50);
    swim_put_text_xy(&G_win, "YOU CAN!", 50, 150);

Google for fonts and play with them, you can even create a font set yourself and make them 300x300.

Hope this helps :)



Thank you for your help but I still believe YOU Can't (like [COLOR=#5174a3]vasanth[/COLOR] said), I'll be absolutely convinced only when you show me your code of the routine [COLOR=black][FONT=Courier New][COLOR=darkorange]swim_put_char()[/COLOR][/FONT][/COLOR][FONT=Helvetica-Bold][B]  [/B][/FONT]that can be found in [COLOR=#2A00FF][FONT=Courier New][COLOR=darkorange]lpc_swim_font.c

[FONT=Times New Roman][SIZE=3][COLOR=#000000](If you dare)

Goodbye ! :p[/COLOR][/SIZE][/FONT]
[/COLOR][/FONT][/COLOR]
0 Kudos
Reply

2,243 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by james on Wed Jun 20 05:07:22 MST 2012
Oh that cover is just a cut out plastic secured with black tapes so i can draw on it. Its really hard to program GUI using swim without some visual clue, at least for me

edited: Anyone got a cool idea how to simplify this process do give me a hint. emWin is too complex for me
0 Kudos
Reply

2,243 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by vasanth on Wed Jun 20 02:55:59 MST 2012

Quote:

Yup! You can!



No. I can't.
I am just keep on wondering how did you managed to program that thing without  removing the beautiful, shiny and glaring cover?...:)
0 Kudos
Reply

2,243 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by james on Wed Jun 20 01:15:35 MST 2012
Woah slow down bro. Heres a Pic!

[IMG]http://a2.sphotos.ak.fbcdn.net/hphotos-ak-ash4/484360_480334401992118_1671630992_n.jpg[/IMG]

Yup! You can!

This is 4.3" LCD 480x272
I am using swim_put_text_xy();
The font I am using here is free droidsans76.

My source code:
    swim_set_font(&G_win, &font_lpc_droidsansr76);
    swim_put_text_xy(&G_win, "76 PIXEL", 80, 50);
    swim_put_text_xy(&G_win, "YOU CAN!", 50, 150);

Google for fonts and play with them, you can even create a font set yourself and make them 300x300.

Hope this helps :)
0 Kudos
Reply

2,243 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by sipel_tp on Fri Jun 15 08:25:43 MST 2012
Thank you very much for your answer:) but I still have a doubt. I think the biggest width value of a font using SWIM is 16pixels. I arrived to this conclusion after reading the implementation of  [SIZE=2][B][U]swim_put_char [/U][/B][SIZE=3]Maybe I'm wrong but I'm not sure. :confused: Has anybody tried using bigger fonts before with SWIM and not using emWIN?[/SIZE]
[/SIZE]
0 Kudos
Reply

2,243 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Fri Jun 15 05:50:19 MST 2012

Quote: sipel_tp
Is it possible to use font types which size is bigger than that, at least 130x80 pixels with this library?


Of course you can use your own fonts. And you could use a smaller font (like 65*40) and size it via software :)
0 Kudos
Reply

2,243 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by sipel_tp on Fri Jun 15 04:42:46 MST 2012
The main problem I have is that I need a bigger font type that SWIM supports. As I understand the biggest font type I can use with the SWIM library is winfreesystem14x16. Is it possible to use font types which size is bigger than that, at least 130x80 pixels with this library? If this is not the case what do you suggest to do?
0 Kudos
Reply

2,243 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by frame on Fri Jun 15 04:09:09 MST 2012
EmbeddedArtists has some kind of graphical library, coming with the code example for their LCD displays, and dev boards with LCD display.
It also implements just the basics (graphics primitives and text).
And I'm not sure about the licencing...
0 Kudos
Reply

2,243 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Fri Jun 15 01:15:05 MST 2012
What are you looking for?

EmWin is huge and doing a lot of amazing things, SWIM is small and just doing the basics :)
0 Kudos
Reply

2,243 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by NXP_Europe on Fri Jun 15 01:08:56 MST 2012
Hi,

Development work is on going, but feel free to use emWIN in your projects.
0 Kudos
Reply