Pages: [1]   Go Down
Author Topic: how to use bitmap?  (Read 1235 times)
0 Members and 1 Guest are viewing this topic.
jordan
Offline Offline
Jr. Member
**
Karma: 0
Posts: 56
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

For function [ drawBitmap(x, y, sx, sy, data [, scale]); ]  in library utft, do I put
replacing data the name of array or the data of array(all the
Hexadecimals of pixels ) ?
Logged

North Queensland, Australia
Online Online
Edison Member
*
Karma: 74
Posts: 2215
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The type is an 'unsigned int*' so it would be an array of 16 bit data.
You want to put the name of the array.
Logged


jordan
Offline Offline
Jr. Member
**
Karma: 0
Posts: 56
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

am I put the data of array (all hexadecimals of pixels) on the same arduino program or put the file (.c) which contains the data of array on the sd card?
Logged

North Queensland, Australia
Online Online
Edison Member
*
Karma: 74
Posts: 2215
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

If you wish to use a .c file it will have to be compiled into the sketch.
You could store a binary file of the data, then using the SD library, read it into your sketch first then pass it to the drawBitmap function.

For now, include the .c file in your sketch and try that way.
Logged


jordan
Offline Offline
Jr. Member
**
Karma: 0
Posts: 56
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

you started your talk (if you wish...), so can I  put the data of array (all hexadecimals of pixels) on the same arduino program and without using SD Card ?
« Last Edit: February 27, 2013, 06:23:59 am by TTU.ABD » Logged

North Queensland, Australia
Online Online
Edison Member
*
Karma: 74
Posts: 2215
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, it is the far easier option, to use the SD card would be far more complex. What ever library you are using most probably has a tutorial/example of bit map use.
Logged


Pages: [1]   Go Up
Jump to: