PageRenderTime 36ms CodeModel.GetById 13ms app.highlight 18ms RepoModel.GetById 2ms app.codeStats 0ms

/binding/win32/gdiplusimagecodec.d

http://github.com/wilkie/djehuty
D | 67 lines | 32 code | 9 blank | 26 comment | 0 complexity | 2ebd8590195a50a4ea6306025905d5b6 MD5 | raw file
 1/*
 2 * gdiplusimagecodec.d
 3 *
 4 * This module implements GdiPlusImageCodec.h for D. The original
 5 * copyright info is given below.
 6 *
 7 * Author: Dave Wilkinson
 8 * Originated: November 25th, 2009
 9 *
10 */
11
12module binding.win32.gdiplusimagecodec;
13
14import binding.win32.windef;
15import binding.win32.winbase;
16import binding.win32.winnt;
17import binding.win32.wingdi;
18import binding.win32.guiddef;
19import binding.win32.gdiplusbase;
20import binding.win32.gdiplustypes;
21import binding.win32.gdiplusenums;
22import binding.win32.gdipluspixelformats;
23import binding.win32.gdiplusgpstubs;
24import binding.win32.gdiplusmetaheader;
25import binding.win32.gdipluspixelformats;
26import binding.win32.gdipluscolor;
27import binding.win32.gdipluscolormatrix;
28import binding.win32.gdiplusflat;
29import binding.win32.gdiplusimaging;
30import binding.win32.gdiplusbitmap;
31import binding.win32.gdiplusimageattributes;
32import binding.win32.gdiplusmatrix;
33
34/**************************************************************************\
35*
36* Copyright (c) 2000-2001, Microsoft Corp.  All Rights Reserved.
37*
38* Module Name:
39*
40*   GdiplusImageCodec.h
41*
42* Abstract:
43*
44*   GDI+ Codec Image APIs
45*
46\**************************************************************************/
47
48//--------------------------------------------------------------------------
49// Codec Management APIs
50//--------------------------------------------------------------------------
51
52Status GetImageDecodersSize(UINT *numDecoders, UINT *size) {
53    return GdipGetImageDecodersSize(numDecoders, size);
54}
55
56Status GetImageDecoders(in UINT numDecoders, in UINT size, ImageCodecInfo *decoders) {
57    return GdipGetImageDecoders(numDecoders, size, decoders);
58}
59
60Status GetImageEncodersSize(UINT *numEncoders, UINT *size) {
61    return GdipGetImageEncodersSize(numEncoders, size);
62}
63
64Status GetImageEncoders(in UINT numEncoders, in UINT size, ImageCodecInfo *encoders) {
65    return GdipGetImageEncoders(numEncoders, size, encoders);
66}
67