Remarque
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
Renvoie un IWICBitmapSource qui est soutenu par les pixels d’un handle de section GDI (Windows Graphics Device Interface).
Syntaxe
HRESULT WICCreateBitmapFromSection(
[in] UINT width,
[in] UINT height,
REFWICPixelFormatGUID pixelFormat,
[in] HANDLE hSection,
[in] UINT stride,
[in] UINT offset,
[out] IWICBitmap **ppIBitmap
);
Paramètres
[in] width
Type : UINT
Largeur des pixels bitmap.
[in] height
Type : UINT
Hauteur des pixels bitmap.
pixelFormat
Type : REFWICPixelFormatGUID
Format de pixel de l'image bitmap.
[in] hSection
Type : HANDLE
Handle de section. Il s’agit d’un handle d’objet de mappage de fichiers retourné par la fonction CreateFileMapping .
[in] stride
Type : UINT
Nombre d’octets de chaque ligne de balayage.
[in] offset
Type : UINT
Décalage dans la section.
[out] ppIBitmap
Type : IWICBitmap**
Pointeur qui reçoit l’image bitmap.
Valeur retournée
Type : HRESULT
Si cette fonction réussit, elle retourne S_OK. Sinon, elle retourne un code d’erreur HRESULT.
Remarques
La fonction WICCreateBitmapFromSection appelle la fonction WICCreateBitmapFromSectionEx avec le paramètre desiredAccessLevel défini sur WICSectionAccessLevelRead.
Configuration requise
| Condition requise | Valeur |
|---|---|
| Client minimal pris en charge | Windows XP avec SP2, Windows Vista [applications de bureau | Applications UWP] |
| Serveur minimal pris en charge | Windows Server 2008 [applications de bureau | applications UWP] |
| Plateforme cible | Windows |
| En-tête | wincodec.h |
| Bibliothèque | Windowscodecs.lib |
| DLL | Windowscodecs.dll |