Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » StaticImage cannot show BMP file
Re: StaticImage cannot show BMP file [message #43609 is a reply to message #43608] Fri, 12 September 2014 15:05 Go to previous messageGo to previous message
jerson is currently offline  jerson
Messages: 202
Registered: June 2010
Location: Bombay, India
Experienced Member

Hello Jibe

I am using 7635, so, I am not too far out of date. Hopefully nothing has changed in the plugin. I wouldn't know how to confirm that though.

I have been trying to decode what is going wrong. In the file BMP.cpp(LoadBMPHeader()) I found something wrong.

The following directives gave me this
sizeof(BMP_INFOHEADER) = 40
AsString(header.biWidth) = 50266112
AsString(header.biHeight) = 65536
AsString(header.biPlanes) = 24 This should be bits per pixel (bitCount)
AsString(header.biBitCount) = 0 This is the cause of failure. Code exits here Valid values 1,4,8,16,24,32
AsString(header.biCompression) = 3032481792 This too is wrong
AsString(header.biSizeImage) = 33

Can someone more knowledgeable than me please check why this happens.

My suspicion is that something is going wrong with the BMP structures alignments.

Regards
Jerson

[Updated on: Fri, 12 September 2014 15:12]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: From XSD to XML
Next Topic: HowTo bind StaticImage to SQL
Goto Forum:
  


Current Time: Mon Aug 25 00:23:25 CEST 2025

Total time taken to generate the page: 0.06120 seconds