Home » Community » Newbie corner » StaticImage cannot show BMP file
Re: StaticImage cannot show BMP file [message #43617 is a reply to message #43614] |
Sun, 14 September 2014 05:19 |
jerson
Messages: 202 Registered: June 2010 Location: Bombay, India
|
Experienced Member |
|
|
Hello Hans
Thanks for your reply. The structure is defined correctly as I can see with the __attribute__ packed as below
#ifdef COMPILER_MSC
#pragma pack(push, 1)
#endif
struct BMP_FILEHEADER {
word bfType;
dword bfSize;
word bfReserved1;
word bfReserved2;
dword bfOffBits;
void SwapEndian()
{
#ifdef CPU_BIG_ENDIAN
bfType = UPP::SwapEndian(bfType);
bfSize = UPP::SwapEndian(bfSize);
bfOffBits = UPP::SwapEndian(bfOffBits);
#endif
}
}
#ifdef COMPILER_GCC
__attribute__((packed))
#endif
;
As I am a relative newbie to this toolchain, I really don't know where to look to identify if the compiler is messing things for me.
This is how my build methods screen looks.
Regards
[Updated on: Sun, 14 September 2014 05:23] Report message to a moderator
|
|
|
|
|
StaticImage cannot show BMP file
By: jerson on Wed, 10 September 2014 13:24
|
|
|
Re: StaticImage cannot show BMP file
By: koldo on Thu, 11 September 2014 08:53
|
|
|
Re: StaticImage cannot show BMP file
By: jerson on Thu, 11 September 2014 10:55
|
|
|
Re: StaticImage cannot show BMP file
By: koldo on Thu, 11 September 2014 11:10
|
|
|
Re: StaticImage cannot show BMP file
By: jerson on Thu, 11 September 2014 11:16
|
|
|
Re: StaticImage cannot show BMP file
By: koldo on Thu, 11 September 2014 11:51
|
|
|
Re: StaticImage cannot show BMP file
By: jerson on Thu, 11 September 2014 12:52
|
|
|
Re: StaticImage cannot show BMP file
By: koldo on Fri, 12 September 2014 08:41
|
|
|
Re: StaticImage cannot show BMP file
By: jerson on Fri, 12 September 2014 09:18
|
|
|
Re: StaticImage cannot show BMP file
By: jerson on Fri, 12 September 2014 10:36
|
|
|
Re: StaticImage cannot show BMP file
By: jibe on Fri, 12 September 2014 14:19
|
|
|
Re: StaticImage cannot show BMP file
By: jerson on Fri, 12 September 2014 15:05
|
|
|
Re: StaticImage cannot show BMP file
By: jerson on Fri, 12 September 2014 15:33
|
|
|
Re: StaticImage cannot show BMP file
By: hans on Sat, 13 September 2014 20:18
|
|
|
Re: StaticImage cannot show BMP file
By: jerson on Sun, 14 September 2014 05:19
|
Goto Forum:
Current Time: Thu Jun 13 21:41:29 CEST 2024
Total time taken to generate the page: 0.01833 seconds
|