Author Topic: image files question  (Read 3502 times)

0 Members and 1 Guest are viewing this topic.

Offline octagonxTopic starter

  • Jr. Member
  • **
  • Posts: 18
  • Helpful? 0
image files question
« on: September 17, 2007, 12:56:20 AM »
Is there a program that can view image files as an array of bits?

Offline crossroads1946

  • Jr. Member
  • **
  • Posts: 21
  • Helpful? 0
Re: image files question
« Reply #1 on: September 17, 2007, 12:06:30 PM »
Technically, you could do it with a text editor, although you'd probably loose the non-printable characters. It really depends on what the format is. You need to know how many bits are used per pixel, if it stores alpha information or any other info, what kind of compression schemes it uses, etc... What is the image format?

Offline dunk

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 1,086
  • Helpful? 21
    • dunk's robot
Re: image files question
« Reply #2 on: September 17, 2007, 01:00:38 PM »
hi octagonx,
most image formats (png or jpeg for example) have some sort of data compression going on so looking at the raw contents doesn't tell you much.
most programming languages have libraries to handle the conversion into usable data for you.
you'll need to search a bit to find one with documentation that you can use with whatever language you are using.

dunk.

Offline octagonxTopic starter

  • Jr. Member
  • **
  • Posts: 18
  • Helpful? 0
Re: image files question
« Reply #3 on: September 18, 2007, 11:30:48 PM »
i've tried opening .bmp files using text editor.  And i think, it does resembles how the image looks like. But what I want is to view each character as a value (numbers, hex etc) so i can at perform mathematical operations on them. Thanks for the replies, dunk, crossroads.

Offline JesseWelling

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 707
  • Helpful? 0
  • Only You Can Build A Robot!
Re: image files question
« Reply #4 on: September 19, 2007, 12:22:51 AM »

Offline octagonxTopic starter

  • Jr. Member
  • **
  • Posts: 18
  • Helpful? 0
Re: image files question
« Reply #5 on: September 19, 2007, 11:15:50 PM »

 


Get Your Ad Here