Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
af8721f4
Commit
af8721f4
authored
Jul 19, 2012
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jul 19, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add some useful helpers to check various pixel format properties.
parent
ccfdb827
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
gdipluspixelformats.h
include/gdipluspixelformats.h
+25
-0
No files found.
include/gdipluspixelformats.h
View file @
af8721f4
...
...
@@ -49,6 +49,31 @@ typedef INT PixelFormat;
#define PixelFormat32bppCMYK (15 | (32 << 8))
#define PixelFormatMax 16
static
inline
BOOL
IsIndexedPixelFormat
(
PixelFormat
format
)
{
return
(
format
&
PixelFormatIndexed
)
?
TRUE
:
FALSE
;
}
static
inline
BOOL
IsAlphaPixelFormat
(
PixelFormat
format
)
{
return
(
format
&
PixelFormatAlpha
)
?
TRUE
:
FALSE
;
}
static
inline
BOOL
IsCanonicalPixelFormat
(
PixelFormat
format
)
{
return
(
format
&
PixelFormatCanonical
)
?
TRUE
:
FALSE
;
}
static
inline
BOOL
IsExtendedPixelFormat
(
PixelFormat
format
)
{
return
(
format
&
PixelFormatExtended
)
?
TRUE
:
FALSE
;
}
static
inline
UINT
GetPixelFormatSize
(
PixelFormat
format
)
{
return
(
format
>>
8
)
&
0xff
;
}
#ifdef __cplusplus
struct
ColorPalette
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment