CopyImage.3w

Langue: en

Version: Jun 2009 (debian - 07/07/09)

Section: 3 (Bibliothèques de fonctions)

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(tm) 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

Defined in "winuser.h".

Implemented in "dlls/user32/cursoricon.c".

Debug channel "cursor".