Solved

convert PNG image to XBM file simple c Program

Posted on 2009-07-10
10
505 Views
Last Modified: 2013-11-13
is there any example code to convert PNG file to XBM in C/C++ Tcl/Tk. on Linux
i know the standard convert command and  Image magick will do that but i need it use on hand held PDA which doesn't have Image Magick Libraries
0
Comment
Question by:tittu
  • 7
  • 3
10 Comments
 
LVL 20

Expert Comment

by:ikework
ID: 24829543
Hi tittu,

Here is a list of tools for conversion:

  http://people.sc.fsu.edu/~burkardt/data/xbm/xbm.html

This tool con convert PGN to XBM and comes with source-code:

  http://www.imagemagick.org/script/index.php


ike
0
 
LVL 20

Expert Comment

by:ikework
ID: 24829675
Just realized, you already mentioned ImageMagick, but it comes with full-source code..
0
 
LVL 20

Expert Comment

by:ikework
ID: 24829694
>> which doesn't have Image Magick Libraries

You could compile it yourself for that platform, looks like its pretty portable..
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 20

Expert Comment

by:ikework
ID: 24829697
I would try to contact them and ask if they already ported it, or if they know about anybody who ported it already, its open-source, so its quite likely.
0
 
LVL 20

Expert Comment

by:ikework
ID: 24829812
particulary look at:

  Reading png File:

    ImageMagick-6.5.4\png\example.c

  Writing xbm File:

    ImageMagick-6.5.4\coders\xbm.c
0
 

Author Comment

by:tittu
ID: 24837386
thanks for good response the i forgot to mention PDA configuration , it is a    arm 9260 board
with 2.6.28 kernel and doesn't have any display libraries, infact doesn't have a display device.

0
 

Author Comment

by:tittu
ID: 25366400
helpful
0
 
LVL 20

Accepted Solution

by:
ikework earned 500 total points
ID: 25367026
>> infact doesn't have a display device.

It doesnt need to have a display, its just reading one buffer/file and writing into another buffer/file, no display needed for that.
0
 

Author Closing Comment

by:tittu
ID: 31602125
partially accepted
0
 
LVL 20

Expert Comment

by:ikework
ID: 25400552
>> partially accepted

You could have asked more, we would be be happy to help :)

ike
0

Featured Post

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question