<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Arm: mcbstm32c kit convert bitmap to c header file</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/27145/arm-mcbstm32c-kit-convert-bitmap-to-c-header-file</link><description> 
Hi guys, 
&amp;#196;&amp;#176; have mcbstm32c kit, it has 320x240 lcd i am using keil
sample projects. i need to convert bitmaps to c file.Which converter
does keil use to create c header file.I found some converters but
they didnt work with keil&amp;#39;s sample projects and</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Arm: mcbstm32c kit convert bitmap to c header file</title><link>https://community.arm.com/thread/126101?ContentTypeID=1</link><pubDate>Thu, 15 Apr 2010 01:48:03 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:fabe9368-8319-45bc-a999-60753732e9df</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
just to add unnecessary confusion!&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Arm: mcbstm32c kit convert bitmap to c header file</title><link>https://community.arm.com/thread/126099?ContentTypeID=1</link><pubDate>Thu, 15 Apr 2010 01:42:25 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:9fa56f50-013a-4554-8c87-529602008c4b</guid><dc:creator>while ();</dc:creator><description>&lt;p&gt;&lt;p&gt;
It is not important if it is .h or .c file, who cares.&lt;br /&gt;
Although .c is more appropriate.&lt;/p&gt;

&lt;p&gt;
Anyways, how did you create image if you have 32 * 32 size without
header?&lt;/p&gt;

&lt;p&gt;
The way it should be done is create bitmap as .bmp file, and
remove header as .bmp file surely has a header and then convert it to
array.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Arm: mcbstm32c kit convert bitmap to c header file</title><link>https://community.arm.com/thread/115685?ContentTypeID=1</link><pubDate>Thu, 15 Apr 2010 01:21:36 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:db2aac29-0b91-44e3-a26e-3c087bffee2e</guid><dc:creator>mehmet efe</dc:creator><description>&lt;p&gt;&lt;p&gt;
@Andy&lt;br /&gt;
Yes you are true, if we use the right terms.when i create the bitmap
to array it is also xxx.c file,&lt;br /&gt;
not xxx.h file.But we are using a name to this xxx.c file header
file. We already know that this isnt a xxx.h file&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Arm: mcbstm32c kit convert bitmap to c header file</title><link>https://community.arm.com/thread/103901?ContentTypeID=1</link><pubDate>Thu, 15 Apr 2010 01:12:57 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:8221a530-1da8-445f-b86a-408461b82694</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
Normally (ie, excluding Cpt Vince), header files are used for
&lt;i&gt;&lt;b&gt;declarations&lt;/b&gt;&lt;/i&gt; only - to allow symbols to be shared
betwen multiple source files.&lt;/p&gt;

&lt;p&gt;
Variable &lt;i&gt;&lt;b&gt;definitions&lt;/b&gt;&lt;/i&gt; are usually best kept in source
files - otherwise you are liable to get errors due to multiple
definitions.&lt;/p&gt;

&lt;p&gt;
See: &lt;a href="http://c-faq.com/decl/decldef.html"&gt;c-faq.com/.../decldef.html&lt;/a&gt;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Arm: mcbstm32c kit convert bitmap to c header file</title><link>https://community.arm.com/thread/78255?ContentTypeID=1</link><pubDate>Thu, 15 Apr 2010 00:55:50 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:a4288d3f-5633-4abe-bc61-4273ea63e18d</guid><dc:creator>mehmet efe</dc:creator><description>&lt;p&gt;&lt;p&gt;
@Andy&lt;br /&gt;
When i am looking the samples the images, they were converted to
header files,&lt;br /&gt;
If you know another way to show images in lcd, it will be pleasure to
learn for me.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Arm: mcbstm32c kit convert bitmap to c header file</title><link>https://community.arm.com/thread/115686?ContentTypeID=1</link><pubDate>Thu, 15 Apr 2010 00:51:37 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:946f261f-9ef8-4ad3-a8fc-f3db0966ce00</guid><dc:creator>mehmet efe</dc:creator><description>&lt;p&gt;&lt;p&gt;
@milorad&lt;br /&gt;
1. step: convert the image to a bitmap image includes 16 bits per
pixel&lt;br /&gt;
2. step: create the c array&lt;/p&gt;

&lt;p&gt;
you said to remove the header of the converted file.but i coulnt
understand after which step i mentioned above.&lt;br /&gt;
after 1 step or after 2. step?&lt;/p&gt;

&lt;p&gt;
for example i have an 32*32=1024 size image&lt;br /&gt;
1: i converted it to bitmap 16 bits per pixel&lt;br /&gt;
2: i converted bitmap 16 bpp to c array&lt;/p&gt;

&lt;p&gt;
the result is:&lt;/p&gt;

&lt;p&gt;
const unsigned char nj[2048] =&lt;br /&gt;
{ 0x00,0x00,0x00,0x00.......&lt;br /&gt;
}&lt;/p&gt;

&lt;p&gt;
if you want to say remove the header after second step there is no
extra;&lt;br /&gt;
because width * height * 2(bytes)=32*32*2=2048&lt;br /&gt;
if you want to say after 1. step how ca i remove the header from a 16
bpp image&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Arm: mcbstm32c kit convert bitmap to c header file</title><link>https://community.arm.com/thread/65562?ContentTypeID=1</link><pubDate>Thu, 15 Apr 2010 00:30:56 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:2969d1bb-6efd-4f80-b4bb-2ee78b8eb9fa</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
Why would you specifically want to create a &lt;i&gt;&lt;b&gt;header&lt;/b&gt;&lt;/i&gt;
file?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Arm: mcbstm32c kit convert bitmap to c header file</title><link>https://community.arm.com/thread/103904?ContentTypeID=1</link><pubDate>Thu, 15 Apr 2010 00:07:43 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:565608b0-194f-463c-9cb4-d8d0ffefdf94</guid><dc:creator>while ();</dc:creator><description>&lt;p&gt;&lt;p&gt;
There is one more thing that you must do, after converting bitmap
to 16 bits per pixel, you have to remove header of bitmap file,
meaning you have to calculate width of picture * height * 2(bytes)
and that much bytes form end of the file have to be left when you
remove header.&lt;br /&gt;
After that convert it to array, and it should work.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Arm: mcbstm32c kit convert bitmap to c header file</title><link>https://community.arm.com/thread/78254?ContentTypeID=1</link><pubDate>Wed, 14 Apr 2010 23:26:00 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:d97390e6-b735-4908-96e0-24bc626e9383</guid><dc:creator>mehmet efe</dc:creator><description>&lt;p&gt;&lt;p&gt;
while(1)&lt;/p&gt;

&lt;p&gt;
i changed the image to 16 bit per pixel bitmap with a converter,
and i used bitmap to c array converter, but in my lcd the images
still is not true,i think i must use 16 bit per pixel c array
converter like image to 16 bit per pixel bitmap converter&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Arm: mcbstm32c kit convert bitmap to c header file</title><link>https://community.arm.com/thread/58056?ContentTypeID=1</link><pubDate>Wed, 14 Apr 2010 11:19:54 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:fc3a478b-203d-4931-af21-c9e01cc8b205</guid><dc:creator>while ();</dc:creator><description>&lt;p&gt;&lt;p&gt;
You should first convert picture to 16 bits per pixel, and then
convert such a picture to constant array of bytes.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Arm: mcbstm32c kit convert bitmap to c header file</title><link>https://community.arm.com/thread/78256?ContentTypeID=1</link><pubDate>Wed, 14 Apr 2010 06:33:16 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:ed95fbe7-4f50-4367-a126-71da1761f43e</guid><dc:creator>mehmet efe</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hi Shamak;&lt;br /&gt;
I couldnt find tool directory,i looked into C:\Keil...&lt;br /&gt;
in my pc but there is not a directory named tool.&lt;br /&gt;
where is this directory?&lt;/p&gt;

&lt;p&gt;
Thanks for your helping...&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Arm: mcbstm32c kit convert bitmap to c header file</title><link>https://community.arm.com/thread/58062?ContentTypeID=1</link><pubDate>Wed, 14 Apr 2010 06:11:59 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:db9668ff-6d56-4e80-8780-96dec951952e</guid><dc:creator>shamak algaar</dc:creator><description>&lt;p&gt;&lt;p&gt;
hey mehmet mate. look in the tool directery. i use graphic2h
converter.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>