📄 cvimage.cpp
字号:
// Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
// NOTE: Do not modify the contents of this file. If this class is regenerated by
// Microsoft Visual C++, your modifications will be overwritten.
#include "stdafx.h"
#include "cvimage.h"
/////////////////////////////////////////////////////////////////////////////
// CCVimage
IMPLEMENT_DYNCREATE(CCVimage, CWnd)
/////////////////////////////////////////////////////////////////////////////
// CCVimage properties
long CCVimage::GetImage()
{
long result;
GetProperty(0x1, VT_I4, (void*)&result);
return result;
}
void CCVimage::SetImage(long propVal)
{
SetProperty(0x1, VT_I4, propVal);
}
long CCVimage::GetImageWidth()
{
long result;
GetProperty(0x2, VT_I4, (void*)&result);
return result;
}
long CCVimage::GetImageHeight()
{
long result;
GetProperty(0x3, VT_I4, (void*)&result);
return result;
}
long CCVimage::GetImageDimension()
{
long result;
GetProperty(0x4, VT_I4, (void*)&result);
return result;
}
CString CCVimage::GetFilename()
{
CString result;
GetProperty(0x5, VT_BSTR, (void*)&result);
return result;
}
void CCVimage::SetFilename(LPCTSTR propVal)
{
SetProperty(0x5, VT_BSTR, propVal);
}
BOOL CCVimage::GetIsGrabber()
{
BOOL result;
GetProperty(0x6, VT_BOOL, (void*)&result);
return result;
}
long CCVimage::GetSerialNumber()
{
long result;
GetProperty(0x7, VT_I4, (void*)&result);
return result;
}
double CCVimage::GetOriginX()
{
double result;
GetProperty(0x8, VT_R8, (void*)&result);
return result;
}
void CCVimage::SetOriginX(double propVal)
{
SetProperty(0x8, VT_R8, propVal);
}
double CCVimage::GetOriginY()
{
double result;
GetProperty(0x9, VT_R8, (void*)&result);
return result;
}
void CCVimage::SetOriginY(double propVal)
{
SetProperty(0x9, VT_R8, propVal);
}
BOOL CCVimage::GetEntire()
{
BOOL result;
GetProperty(0xa, VT_BOOL, (void*)&result);
return result;
}
void CCVimage::SetEntire(BOOL propVal)
{
SetProperty(0xa, VT_BOOL, propVal);
}
double CCVimage::GetScaleX()
{
double result;
GetProperty(0xb, VT_R8, (void*)&result);
return result;
}
void CCVimage::SetScaleX(double propVal)
{
SetProperty(0xb, VT_R8, propVal);
}
double CCVimage::GetScaleY()
{
double result;
GetProperty(0xc, VT_R8, (void*)&result);
return result;
}
void CCVimage::SetScaleY(double propVal)
{
SetProperty(0xc, VT_R8, propVal);
}
double CCVimage::GetAreaX0()
{
double result;
GetProperty(0xd, VT_R8, (void*)&result);
return result;
}
void CCVimage::SetAreaX0(double propVal)
{
SetProperty(0xd, VT_R8, propVal);
}
double CCVimage::GetAreaX1()
{
double result;
GetProperty(0xe, VT_R8, (void*)&result);
return result;
}
void CCVimage::SetAreaX1(double propVal)
{
SetProperty(0xe, VT_R8, propVal);
}
double CCVimage::GetAreaX2()
{
double result;
GetProperty(0xf, VT_R8, (void*)&result);
return result;
}
void CCVimage::SetAreaX2(double propVal)
{
SetProperty(0xf, VT_R8, propVal);
}
double CCVimage::GetAreaY0()
{
double result;
GetProperty(0x10, VT_R8, (void*)&result);
return result;
}
void CCVimage::SetAreaY0(double propVal)
{
SetProperty(0x10, VT_R8, propVal);
}
double CCVimage::GetAreaY1()
{
double result;
GetProperty(0x11, VT_R8, (void*)&result);
return result;
}
void CCVimage::SetAreaY1(double propVal)
{
SetProperty(0x11, VT_R8, propVal);
}
double CCVimage::GetAreaY2()
{
double result;
GetProperty(0x12, VT_R8, (void*)&result);
return result;
}
void CCVimage::SetAreaY2(double propVal)
{
SetProperty(0x12, VT_R8, propVal);
}
BOOL CCVimage::GetResetCS()
{
BOOL result;
GetProperty(0x13, VT_BOOL, (void*)&result);
return result;
}
void CCVimage::SetResetCS(BOOL propVal)
{
SetProperty(0x13, VT_BOOL, propVal);
}
double CCVimage::GetCsa11()
{
double result;
GetProperty(0x14, VT_R8, (void*)&result);
return result;
}
void CCVimage::SetCsa11(double propVal)
{
SetProperty(0x14, VT_R8, propVal);
}
double CCVimage::GetCsa12()
{
double result;
GetProperty(0x15, VT_R8, (void*)&result);
return result;
}
void CCVimage::SetCsa12(double propVal)
{
SetProperty(0x15, VT_R8, propVal);
}
double CCVimage::GetCsa21()
{
double result;
GetProperty(0x16, VT_R8, (void*)&result);
return result;
}
void CCVimage::SetCsa21(double propVal)
{
SetProperty(0x16, VT_R8, propVal);
}
double CCVimage::GetCsa22()
{
double result;
GetProperty(0x17, VT_R8, (void*)&result);
return result;
}
void CCVimage::SetCsa22(double propVal)
{
SetProperty(0x17, VT_R8, propVal);
}
double CCVimage::GetRotationX()
{
double result;
GetProperty(0x18, VT_R8, (void*)&result);
return result;
}
void CCVimage::SetRotationX(double propVal)
{
SetProperty(0x18, VT_R8, propVal);
}
double CCVimage::GetRotationY()
{
double result;
GetProperty(0x19, VT_R8, (void*)&result);
return result;
}
void CCVimage::SetRotationY(double propVal)
{
SetProperty(0x19, VT_R8, propVal);
}
BOOL CCVimage::GetGrab()
{
BOOL result;
GetProperty(0x1a, VT_BOOL, (void*)&result);
return result;
}
void CCVimage::SetGrab(BOOL propVal)
{
SetProperty(0x1a, VT_BOOL, propVal);
}
BOOL CCVimage::GetPingPongEnabled()
{
BOOL result;
GetProperty(0x1b, VT_BOOL, (void*)&result);
return result;
}
void CCVimage::SetPingPongEnabled(BOOL propVal)
{
SetProperty(0x1b, VT_BOOL, propVal);
}
/////////////////////////////////////////////////////////////////////////////
// CCVimage operations
BOOL CCVimage::SaveImage(LPCTSTR Filename)
{
BOOL result;
static BYTE parms[] =
VTS_BSTR;
InvokeHelper(0x1c, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
Filename);
return result;
}
BOOL CCVimage::CopyImageToClipboard()
{
BOOL result;
InvokeHelper(0x1d, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
return result;
}
BOOL CCVimage::PasteImageFromClipboard()
{
BOOL result;
InvokeHelper(0x1e, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
return result;
}
BOOL CCVimage::LoadImageByDialog()
{
BOOL result;
InvokeHelper(0x1f, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
return result;
}
BOOL CCVimage::SaveImageByDialog()
{
BOOL result;
InvokeHelper(0x20, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
return result;
}
BOOL CCVimage::LoadImage(LPCTSTR Filename)
{
BOOL result;
static BYTE parms[] =
VTS_BSTR;
InvokeHelper(0x21, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
Filename);
return result;
}
BOOL CCVimage::ScanPlane(long Plane, long Density, BOOL UseCS)
{
BOOL result;
static BYTE parms[] =
VTS_I4 VTS_I4 VTS_BOOL;
InvokeHelper(0x22, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
Plane, Density, UseCS);
return result;
}
BOOL CCVimage::ScanImage(long Density, BOOL UseCS)
{
BOOL result;
static BYTE parms[] =
VTS_I4 VTS_BOOL;
InvokeHelper(0x23, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
Density, UseCS);
return result;
}
BOOL CCVimage::CreateEmptyImage(long Dimension, long Width, long Height, BOOL ForceOverlay)
{
BOOL result;
static BYTE parms[] =
VTS_I4 VTS_I4 VTS_I4 VTS_BOOL;
InvokeHelper(0x24, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
Dimension, Width, Height, ForceOverlay);
return result;
}
BOOL CCVimage::LoadImageByUserDialog(LPCTSTR DefaultPath, LPCTSTR Titel, LPCTSTR Filter)
{
BOOL result;
static BYTE parms[] =
VTS_BSTR VTS_BSTR VTS_BSTR;
InvokeHelper(0x25, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
DefaultPath, Titel, Filter);
return result;
}
BOOL CCVimage::SaveImageByUserDialog(LPCTSTR DefaultPath, LPCTSTR Titel, LPCTSTR Filter)
{
BOOL result;
static BYTE parms[] =
VTS_BSTR VTS_BSTR VTS_BSTR;
InvokeHelper(0x26, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
DefaultPath, Titel, Filter);
return result;
}
void CCVimage::Lock()
{
InvokeHelper(0x27, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void CCVimage::Unlock()
{
InvokeHelper(0x28, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
BOOL CCVimage::Clear(long Plane, double Value)
{
BOOL result;
static BYTE parms[] =
VTS_I4 VTS_R8;
InvokeHelper(0x29, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
Plane, Value);
return result;
}
long CCVimage::DataType(long Plane)
{
long result;
static BYTE parms[] =
VTS_I4;
InvokeHelper(0x2a, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
Plane);
return result;
}
BOOL CCVimage::Snap()
{
BOOL result;
InvokeHelper(0x2b, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
return result;
}
BOOL CCVimage::SaveLossyImage(LPCTSTR Filename, double Quality)
{
BOOL result;
static BYTE parms[] =
VTS_BSTR VTS_R8;
InvokeHelper(0x2c, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
Filename, Quality);
return result;
}
BOOL CCVimage::GetGrab2Status(long Grab2InfoType, double* Grab2Info)
{
BOOL result;
static BYTE parms[] =
VTS_I4 VTS_PR8;
InvokeHelper(0x2d, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
Grab2InfoType, Grab2Info);
return result;
}
void CCVimage::AboutBox()
{
InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -