Compartilhar via


IBitmapImage::UnlockBits (Compact 2013)

3/26/2014

This feature is being deprecated for this release. Refer to this component: Windows Imaging Component.

This method unlocks an area of the bitmap image object locked by a previous call to the IBitmapImage::LockBits call.

Syntax

HRESULT UnlockBits(
  const BitmapData* lockedBitmapData
);

Parameters

  • lockedBitmapData
    [in] A pointer to an instance of a BitmapData class identifying the area to unlock.

Return Value

If successful, this method returns S_OK.

If it fails, this method should return one of the following error values:

  • IMGERR_BADUNLOCK
  • IMGERR_OBJECTBUSY
  • E_FAIL
  • E_INVALIDARG

For more information, see Error Codes for the Imaging API.

Requirements

Header

imaging.h

Library

Imaging.lib

See Also

Reference

IBitmapImage
IBitmapImage::LockBits
BitmapData