NAME

CopyImage  (USER32.@)

SYNOPSIS

 HANDLE CopyImage
 (
  HANDLE hnd,
  UINT   type,
  INT    desiredx,
  INT    desiredy,
  UINT   flags
 )

DESCRIPTION

CopyImage (USER32.@) Creates new image and copies attributes to it.

PARAMS

hnd [In] Handle to image to copy.
type [In] Type of image to copy.
desiredx [In] Desired width of new image.
desiredy [In] Desired height of new image.
flags [In] Copy flags.

RETURNS

Success: Handle to newly created image

Failure: NULL.

BUGS

Only Windows® NT 4.0 supports the LR_COPYRETURNORG flag for bitmaps, all other versions (95/2000/XP have been tested) ignore it.

NOTES

If LR_CREATEDIBSECTION is absent, the copy will be monochrome for a monochrome source bitmap or if LR_MONOCHROME is present, otherwise the copy will have the same depth as the screen. The content of the image will only be copied if the bit depth of the original image is compatible with the bit depth of the screen, or if the source is a DIB section. The LR_MONOCHROME flag is ignored if LR_CREATEDIBSECTION is present.

IMPLEMENTATION

Declared in "include/ntuser.h". gitlab.winehq.org/wine/wine/blob/master/include/ntuser.h

Implemented in "dlls/user32/cursoricon.c". gitlab.winehq.org/wine/wine/blob/master/dlls/user32/cursoricon.c

Debug channel "cursor".


Copyright © 2024 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Nov 2024.