473,320 Members | 2,020 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,320 software developers and data experts.

Reading RGB value in BMP image using C

saranjegan
hi,

i had readen the file header and file info header of a bitmap totally of 54 bytes
now i should read RGB values in it using C...how should i make this.. ?
Feb 28 '07 #1
4 5397
timmy
2
hey friends...
can any one send me a c++ program to compress a bmp file
i will be grate ful..
my id is <removed email address as per Posting Guidelines in FAQ>
Mar 8 '07 #2
DumRat
93
hi,

i had readen the file header and file info header of a bitmap totally of 54 bytes
now i should read RGB values in it using C...how should i make this.. ?
If u are still looking for the answer, I think this may help.

I did the same thing a couple of months back. The rgb values for a pixel comes together with the alpha value. Hence, it is rgba. What u need to do is throe out the file header and read those values in succession four by four by four.
Mar 9 '07 #3
If u are still looking for the answer, I think this may help.

I did the same thing a couple of months back. The rgb values for a pixel comes together with the alpha value. Hence, it is rgba. What u need to do is throe out the file header and read those values in succession four by four by four.
dude:
thanks for your time , though am finished coding ,let me know the steps fallowed by you :)
Mar 9 '07 #4
DumRat
93
dude:
thanks for your time , though am finished coding ,let me know the steps fallowed by you :)
try this forum link:

http://www.thescripts.com/forum/thread614122.html
Mar 11 '07 #5

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

Similar topics

7
by: John | last post by:
I have over 5000 thumbnail pictures of size 5kb each. I would like to able to load all 5000 pictures and view 50 per page using mysql_data_seek(). I would like to know what are the advantages and...
4
by: Andy | last post by:
Hello All: I have a field in the database that is an Image. I have no idea how the data is stored in here (Image, compressed, encrypted, plain text, etc). I am trying to write the contents to...
3
by: dale zhang | last post by:
Hi, I am trying to read an image from MS Access DB based on the following article: http://www.vbdotnetheaven.com/Code/Sept2003/2175.asp The article author is using PictureBox for windows...
2
by: Chucker | last post by:
Hi Community, I think I can store Binary Data in SQL Server but when I try to retrieve it, I always only get one byte. I think I stored my Binary Data in SQL Server in a Colum of Type Image....
3
by: Sridhar | last post by:
Hi, I need to read a pdf file which is on my hard drive and put it in the sql server database. Once placed in the sql server, I again need to read that file from the database and display it on...
9
by: JuniorProgrammer | last post by:
Please This is queit a task av been trying to solve. Could anyone please tell me how to read a blob from an SQL using a dataset and stuffing this image into the Image control of a webform. Any...
0
by: doubts | last post by:
Hi, I have a query regarding reading Image Property for button from a XML file . I read XML files to Generate Screens using System.Windows.Forms.Controls .The XML file is read and properties...
1
by: doubts | last post by:
Hi, I have a query regarding reading Image Property for button from a XML file . I read XML files to Generate Screens using System.Windows.Forms.Controls .The XML file is read and properties...
4
by: matt urbanowski | last post by:
Hi, I have a stylesheet (.css) file with classes in e.g. ..csHeader_tdLogo { background-position: top left; vertical-align: top; background-image: url(Images/Header_Logo.gif); width: 171px;...
6
by: Victory | last post by:
Hi, I need to know the compression type of jpeg (jpg) files. I am using the System.Drawing.Imaging and loading the file using an Image object. The next thing i do, is to examine the propertyItems...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.