Scroll to navigation

CreatePatternBrush(3w) Wine API CreatePatternBrush(3w)

NAME

CreatePatternBrush (GDI32.@)

SYNOPSIS

HBRUSH CreatePatternBrush
(
HBITMAP hbitmap
)
 

DESCRIPTION

Create a logical brush with a pattern from a bitmap.
 

PARAMS

hbitmap [In] Bitmap containing pattern for the brush.
 

RETURNS

A handle to the created brush, or a NULL handle if the brush cannot be created.
 

NOTES

- This function uses CreateBrushIndirect(3w) to create the brush.
- The brush returned should be freed by the caller using DeleteObject(3w) when it is no longer required.
 

IMPLEMENTATION

Declared in "gdiplusenums.h".
Implemented in "dlls/gdi32/brush.c".
Debug channel "gdi".
Oct 2012 Wine API