-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgdiplusimagecodec.py
More file actions
49 lines (36 loc) · 1.42 KB
/
Copy pathgdiplusimagecodec.py
File metadata and controls
49 lines (36 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
"""
/**************************************************************************\
*
* Copyright (c) 2000-2001, Microsoft Corp. All Rights Reserved.
*
* Module Name:
*
* GdiplusImageCodec.h
*
* Abstract:
*
* GDI+ Codec Image APIs
*
\**************************************************************************/
"""
from . import cpreproc
if cpreproc.pragma_once("_GDIPLUSIMAGECODEC_H"):
from .minwindef import *
# REGION *** Desktop Family ***
#--------------------------------------------------------------------------
# Codec Management APIs
#--------------------------------------------------------------------------
def GetImageDecodersSize(numDecoders: PUINT, size: PUINT) -> int:
from .gdiplus import Gdiplus
return Gdiplus.DllExports.GdipGetImageDecodersSize(numDecoders, size)
def GetImageDecoders(numDecoders: int, size: int, decoders) -> int:
from .gdiplus import Gdiplus
return Gdiplus.DllExports.GdipGetImageDecoders(numDecoders, size, decoders)
def GetImageEncodersSize(numEncoders: PUINT, size: PUINT) -> int:
from .gdiplus import Gdiplus
return Gdiplus.DllExports.GdipGetImageEncodersSize(numEncoders, size)
def GetImageEncoders(numEncoders: int, size: int, encoders) -> int:
from .gdiplus import Gdiplus
return Gdiplus.DllExports.GdipGetImageEncoders(numEncoders, size, encoders)
# REGION ***
# _GDIPLUSIMAGECODEC_H