📄 magickcom.idl
字号:
[id(86), helpstring("method Chop")] HRESULT Chop(BSTR cGeometry,[out, retval] VARIANT_BOOL *pVal);
[id(87), helpstring("method CycleColormap")] HRESULT CycleColormap(int nAmount, [out, retval] VARIANT_BOOL *pVal);
[id(88), helpstring("method Frame")] HRESULT Frame(unsigned int width, unsigned int height, int InnerBevel, int OuterBevel, [out, retval] VARIANT_BOOL *pVal);
[id(89), helpstring("method Ping")] HRESULT Ping(BSTR cFilename, [out, retval] VARIANT_BOOL *pVal);
[id(90), helpstring("method Raise")] HRESULT Raise(BSTR cGeometry, VARIANT_BOOL RaisedFlag, [out, retval] VARIANT_BOOL *pVal);
[id(91), helpstring("method ReduceNoise")] HRESULT ReduceNoise(int Order, [out, retval] VARIANT_BOOL *pVal);
[id(92), helpstring("method Segment")] HRESULT Segment(double ClusterThreshold, double SmoothingThreshold, [out, retval] VARIANT_BOOL *pVal);
[id(93), helpstring("method Shave")] HRESULT Shave(BSTR cGeometry, [out, retval] VARIANT_BOOL *pVal);
[id(94), helpstring("method ShowMessage")] HRESULT ShowMessage(long uiMsg);
[propget, id(95), helpstring("property Images")] HRESULT Images([out, retval] IImageCollection* *pVal);
[id(96), helpstring("method GetImageAddress")] HRESULT GetImageAddress([out, retval] long *pVal);
[id(97), helpstring("method Composite")] HRESULT Composite(IImage *pImage, BSTR cGeometry, int CompositeOp, [out, retval] VARIANT_BOOL *pVal);
[id(98), helpstring("method Stegano")] HRESULT Stegano([in] IImage *pImage, [out, retval] VARIANT_BOOL *pVal);
};
[
object,
uuid(5B5A7365-75BA-4F88-ABBF-64695DAAA2B0),
dual,
helpstring("IImageControl Interface"),
pointer_default(unique)
]
interface IImageControl : IDispatch
{
[propget, id(1), helpstring("property Image")] HRESULT Image([out, retval] IImage* *pVal);
[propget, id(2), helpstring("property GetAddress")] HRESULT GetAddress([out, retval] long *pVal);
[id(3), helpstring("method SampleMessage")] HRESULT SampleMessage();
};
[
object,
uuid(2DB6FBA7-2E7E-4F2D-AC2E-29AFB42E419F),
dual,
helpstring("IGeometry Interface"),
pointer_default(unique)
]
interface IGeometry : IDispatch
{
[propget, id(1), helpstring("property Width")] HRESULT Width([out, retval] unsigned int *pVal);
[propput, id(1), helpstring("property Width")] HRESULT Width([in] unsigned int newVal);
[propget, id(2), helpstring("property Height")] HRESULT Height([out, retval] unsigned int *pVal);
[propput, id(2), helpstring("property Height")] HRESULT Height([in] unsigned int newVal);
[propget, id(3), helpstring("property XOff")] HRESULT XOff([out, retval] unsigned int *pVal);
[propput, id(3), helpstring("property XOff")] HRESULT XOff([in] unsigned int newVal);
[propget, id(4), helpstring("property YOff")] HRESULT YOff([out, retval] unsigned int *pVal);
[propput, id(4), helpstring("property YOff")] HRESULT YOff([in] unsigned int newVal);
[propget, id(5), helpstring("property XNegative")] HRESULT XNegative([out, retval] VARIANT_BOOL *pVal);
[propput, id(5), helpstring("property XNegative")] HRESULT XNegative([in] VARIANT_BOOL newVal);
[propget, id(6), helpstring("property YNegative")] HRESULT YNegative([out, retval] VARIANT_BOOL *pVal);
[propput, id(6), helpstring("property YNegative")] HRESULT YNegative([in] VARIANT_BOOL newVal);
[propget, id(7), helpstring("property Percent")] HRESULT Percent([out, retval] VARIANT_BOOL *pVal);
[propput, id(7), helpstring("property Percent")] HRESULT Percent([in] VARIANT_BOOL newVal);
[propget, id(8), helpstring("property Aspect")] HRESULT Aspect([out, retval] VARIANT_BOOL *pVal);
[propput, id(8), helpstring("property Aspect")] HRESULT Aspect([in] VARIANT_BOOL newVal);
[propget, id(9), helpstring("property Greater")] HRESULT Greater([out, retval] VARIANT_BOOL *pVal);
[propput, id(9), helpstring("property Greater")] HRESULT Greater([in] VARIANT_BOOL newVal);
[propget, id(10), helpstring("property Less")] HRESULT Less([out, retval] VARIANT_BOOL *pVal);
[propput, id(10), helpstring("property Less")] HRESULT Less([in] VARIANT_BOOL newVal);
[id(11), helpstring("method IsValid")] HRESULT IsValid([out, retval] VARIANT_BOOL *pVal);
[id(12), helpstring("method Geometry")] HRESULT Geometry([in] BSTR PSSizeNick, [out, retval] BSTR *pVal);
};
[
object,
uuid(983302C5-A008-494A-A16A-D596EC1B38D1),
dual,
helpstring("IColor Interface"),
pointer_default(unique)
]
interface IColor : IDispatch
{
[propget, id(1), helpstring("property ColorMode")] HRESULT ColorMode([out, retval] BSTR *pVal);
[id(2), helpstring("method SetRGB")] HRESULT SetRGB(double Red, double Green, double Blue);
[id(3), helpstring("method SetGray")] HRESULT SetGray(double Shade);
[id(4), helpstring("method SetMono")] HRESULT SetMono(VARIANT_BOOL WhitePixel);
[id(5), helpstring("method SetHSL")] HRESULT SetHSL(double Hue, double Saturation, double Luminosity);
[id(6), helpstring("method SetYUV")] HRESULT SetYUV(double Y, double U, double V);
};
interface IImage; // Fwd declaration
[
object,
uuid(FB9C5C71-A094-4CCA-9CBE-470524DE3800),
dual,
helpstring("IImageCollection Interface"),
pointer_default(unique)
]
interface IImageCollection : IDispatch
{
[id(1), helpstring("method Add")] HRESULT Add([in] IImage* pVal);
[id(2), helpstring("method Remove")] HRESULT Remove([in] long n, [out,retval] IImage** ppVal);
[propget] HRESULT Count([out, retval] long* pnCount);
[id(DISPID_VALUE), propget, helpstring("property Item (1-based)")] HRESULT Item([in] long n, [out, retval] IImage** ppItem);
[id(DISPID_NEWENUM), propget, restricted] HRESULT _NewEnum([out, retval] IUnknown** ppEnum);
};
[
uuid(268B14B7-3123-4ACC-ACF4-55D2B9E69065),
version(1.0),
helpstring("MagickCOM 1.0 Type Library")
]
library MAGICKCOMLib
{
importlib("stdole32.tlb");
importlib("stdole2.tlb");
[
uuid(1FA85FFC-C245-4C1E-B121-00CA5EAB94F4),
helpstring("Image Class")
]
coclass Image
{
[default] interface IImage;
};
[
uuid(6CC4DF86-9661-4B00-A6A9-32C7787A8D07),
helpstring("ImageControl Class")
]
coclass ImageControl
{
[default] interface IImageControl;
//interface IImageCollection;
};
[
uuid(F21700BE-8E79-40F4-B8C5-3038A9AA8430),
helpstring("Geometry Class")
]
coclass Geometry
{
[default] interface IGeometry;
};
[
uuid(F4D71BC1-2606-4EB6-9E67-814D12D97CD7),
helpstring("Color Class")
]
coclass Color
{
[default] interface IColor;
};
[
uuid(C110309D-B468-47DF-AA2F-415825F87FC8),
helpstring("ImageCollection Class"),
noncreatable,
]
coclass ImageCollection
{
[default] interface IImageCollection;
};
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -