flat assembler
Message board for the users of flat assembler.

Index > Windows > ..

Author
Thread Post new topic Reply to topic
pool



Joined: 08 Jan 2007
Posts: 97
pool 23 Jul 2010, 05:02
..


Last edited by pool on 17 Mar 2013, 12:07; edited 1 time in total
Post 23 Jul 2010, 05:02
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4624
Location: Argentina
LocoDelAssembly 23 Jul 2010, 06:12
RGBTRIPLE Structure, i.e., it is not a simple data type. RGBA (Red-Green-Blue-Alpha) takes the same space as an Int32/DWORD/COLORREF, but COLORREF can actually be casted as a RGBA structure.
Post 23 Jul 2010, 06:12
View user's profile Send private message Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1905
DOS386 24 Jul 2010, 13:11
> say for example 8-bit is for the char and 32-bit for int, so what is for 24-bit for the GDI

FASM doesn't have "char" (of unknown signedness) nor "int" (of unknown size") Laughing

> RGBA (Red-Green-Blue-Alpha) takes the same space as an Int32/DWORD

RGBA or RGBU Smile

The dilemma of 24bpp (saves memory but alignment horror) vs 32bpp (wastes memory but alignment is fine)
Post 24 Jul 2010, 13:11
View user's profile Send private message Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3175
Location: Denmark
f0dder 25 Jul 2010, 19:36
32bpp only wastes space if you don't use alpha Smile
Post 25 Jul 2010, 19:36
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.