473,395 Members | 1,956 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

To read a BMP file and Encode in RLE

hai friends,
i need some help with codes, to read a BMP file pixel wise.
and to do run Length Encoding.
also there is also another doubt

if we r using fputc, or fgetc
will the count we are calculating will be put as integer or as character?

i hav extracted the Data and Header part from a BMP file. and now there is one more doubt about the pixel arrangement in a line of BMP data.
its always a multiple of 4. but i hav found that a pixel comprises of 3 bytes with R,G and B.
is there any other information included with it?

plz help...
thanks in Advance
Jan 28 '08 #1
1 3479
hdanw
61
hai friends,
i need some help with codes, to read a BMP file pixel wise.
and to do run Length Encoding.
also there is also another doubt

if we r using fputc, or fgetc
will the count we are calculating will be put as integer or as character?

i hav extracted the Data and Header part from a BMP file. and now there is one more doubt about the pixel arrangement in a line of BMP data.
its always a multiple of 4. but i hav found that a pixel comprises of 3 bytes with R,G and B.
is there any other information included with it?

plz help...
thanks in Advance
This is one of my favorite book marks :

http://www.wotsit.org/

I'm pretty sure they have everything I know about it.

Dan
Feb 5 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Michael Weir | last post by:
I'm sure this is a very simple thing to do, once you know how to do it, but I am having no fun at all trying to write utf-8 strings to a unicode file. Does anyone have a couple of lines of code...
0
by: Michael Foord | last post by:
Another http question. First one is simple - if a POST is made *to* a CGI with file uplaods then you can get a FieldStorage with list values - each entry in the list being a file. Two questions...
5
by: zambak | last post by:
Hi I have assignment for some wierd compression alghoritam that will read in from a file convert characters to 5 bit codes and then write out compressed version of the original file. For...
2
by: Just D. | last post by:
All! How should we read any file from some URL? I found in MSDN the method URLDownloadToFile function, but it's for C#. There is another example to read but it doesn't work if the page is more...
2
by: AAguiar | last post by:
Thanks for your replies. Last week, I continued working with this problem. Trying to reproduce the error, I developed a short example and found that the problem is related to strong name dll. ...
4
by: Carlo Marchesoni | last post by:
I really don't achieve to read a simple 'input.txt' with the following content: Jürg (Hex: 4a fc 72 67) to an identical 'output.txt' I do the following (and tried with tons of different...
9
by: David Thielen | last post by:
Hi; If I need to parse an xml file from a password protected site - like: XmlReader xmlReader = XmlReader.Create("http://www.cia.gov/AgentList.xml", readerSettings); How do I pass in the...
0
by: brendon | last post by:
I need to read in a jpeg or bmp file in to memory and then save these files in to a resource file for distribution in a form other than jpeg or bmp. This requires only one file to be distributed, the...
2
by: duylam76 | last post by:
I'm programming a server and corresponding client application that sends data to each other over a socket. I want to encode an integer to send over the socket. Right now everything is fine because...
1
by: helios | last post by:
hi all, I have a text file follows and it is a content: 2 D:\MessageLog.txt D:\CVK.mp3 D:\Encode\ 2 D:\Decode\
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.