📄 sy1001.htm
字号:
Return value
None.
Description
This function gets the palette in 8 bit colors.
====================================
5. Imager OCX Control Method Summary
====================================
Initialization Methods
Init
BInit
IsInit
Close
BClose
Input Color Format Methods
SetColorFormat
GetColorFormat
Input Video Format Methods
GetVideoFormat
SetVideoFormat
Color Control Methods
GetBrightness
GetContrast
GetHue
GetSaturation
SetBrightness
SetContrast
SetHue
SetSaturation
Input Video Source Methods
GetVideoSource
SetVideoSource
Input S-Video Methods
GetSVideo
SetSVideo
Paint windows Methods
PaintOverlay
PaintPreview
BPaintPreview
StopOverlay
UpdateOverlay
PauseOverlay
ResumeOverlay
Capture with frame buferr Methods
CaptureFrame
LoadBMPFile
SaveBMPFile
SaveImgFile
BCaptureFrame
BLoadBMPFile
BSaveImgFile
GetBMPFileWidth
GetBMPFileHeight
=========================================
6. Imager OCX Control Methods Description
=========================================
object.Init hwnd
Parameters
hwnd - window handle.
Return value
BOOL - TRUE success, FALSE fail.
Description
This method initializes AVERPCI.DLL, and allocate 1.5MB frame buffer.
object.BInit hwnd
Parameters
hwnd - window handle.
Return value
BOOL - TRUE success, FALSE fail.
Description
This method initializes AVERPCI.DLL.
object.IsInit
Parameters
None.
Return value
BOOL - TRUE initialized, FALSE not initialized.
Description
This method checks whether AVERPCI.DLL is initialized or not.
object.Close
Parameters
None.
Return value
None.
Description
This method closes AVERPCI.DLL, and releases the frame buffer.
object.BClose
Parameters
None.
Return value
None.
Description
This method closes AVERPCI.DLL.
object.SetColorFormat ColFmt
Parameters
Color Format value (RGB24=0, RGB16=1, RGB15=2, RGB8=3, YUV422=4, YUV411=5, Gray level=6).
Return value
BOOL-TRUE success, FALSE fail.
Description
This method sets the color format of the capture buffer.
object.GetColorFormat
Parameters
None.
Return value
Color Format value.
Description
This method gets the color format of the capture buffer.
object.GetVideoFormat
Parameters
None.
Return value
Video Format value-(NTSC=1, PAL-BG=2, PAL-DK=2, PAL-I=2, PAL-M=3, PAL-N=4 and SECAM=5).
Description
This method gets the current video format.
object.SetVideoFormat VideoFormat
Parameters
Video Format value-(NTSC=1, PAL-BG=2, PAL-DK=2, PAL-I=2, PAL-M=3, PAL-N=4 and SECAM=5).
Return value
BOOL-TRUE success, FALSE fail.
Description
This method sets the video format.
object.GetBrightness
Parameters
None.
Return value
Int-Brightness values (0-255).
Description
This method gets the brightness value.
object.GetContrast
Parameters
None.
Return value
Int-Contrast values (0-255).
Description
This method gets the contrast value.
object.GetSaturation
Parameters
None.
Return value
Int-Saturation values (0-255).
Description
This method gets the Saturation value.
object.GetHue
Parameters
None.
Return value
Int-Hue values (0-255).
Description
This method gets the hue value.
object.SetContrast int
Parameters
Int-Contrast values (0-255).
Return value
None.
Description
This method sets the contrast value.
object.SetBrightness int
Parameters
Int-Brightness values (0-255).
Return value
None.
Description
This method sets the brightness value.
object.SetHue int
Parameters
Int-Hue values (0-255).
Return value
None.
Description
This method sets the hue value.
object.SetSaturation int
Parameters
Int-Saturation values (0-255).
Return value
None.
Description
This method sets the saturation value.
object.GetVideoSource
Parameters
None.
Return value
Video source connector-(Source1=1, Source2=2 and Source3=3).
Description
This method gets the video source.
object.SetVideoSource Connector
Parameters
Video source connector(Source1=1, Source2=2 and Source3=3).
Return value
BOOL TRUE success, FALSE fail.
Description
This method sets the video source.
object.SetSVideo State
Parameters
S-Video State - (Off=0, On=1).
Return value
BOOL-TRUE success, FALSE fail.
Description
This method sets the S-Video mode.
object.GetSVideo
Parameters
None.
Return value
S-Video State-(Off=0, On=1).
Description
This method gets the S-Video mode.
object.PaintOverlay left,top,right,bottom
Parameters
left-Specifies the x-coordinate of the upper-left corner
of a bitmap.
top-Specifies the y-coordinate of the upper-left corner
of a bitmap.
right-Specifies the x-coordinate of the lower-right corner
of a bitmap.
bottom-Specifies the y-coordinate of the lower-right corner
of a bitmap.
Return value
BOOL-TRUE-success, FALSE fail.
Description
This method Paints the overlay window.
object.PaintPreview HDC,bitmapWidth,bitmapHeight,nRGBvalue
Parameters
HDC - window's DC.
bitmapWidth - the width of video frame.
bitmapHeight - the height of video frame.
nRGBvalue - color format of bitmap (0 -> true color, 1 -> 256 color)
Return value
BOOL-TRUE success, FALSE fail.
Description
This method sets the paint preview window.
object.BPaintPreview hdc,lpbuffer,biWidth,biHeight,biBitCount,biCompression,biXPelsPerMeter,biYPelsPerMeter,biClrUsed,biClrImportant
Parameters
hdc - window's hdc.
lpbuffer - the memory address of frame buffer.
biWidth - member of BITMAPINFOHEADER.
biHeight - member of BITMAPINFOHEADER.
biBitCount - member of BITMAPINFOHEADER.
biCompression - member of BITMAPINFOHEADER.
biXPelsPerMeter - member of BITMAPINFOHEADER.
biYPelsPerMeter -member of BITMAPINFOHEADER.
biClrUsed - member of BITMAPINFOHEADER.
biClrImportant - member of BITMAPINFOHEADER.
Return value
BOOL-TRUE success, FALSE fail.
Description
This method sets the paint preview window.
object.StopOverlay
Parameters
None.
Return value
BOOL-TRUE success, FALSE fail.
Description
This method stops the direct-draw surface.
object.UpdateOverlay
Parameters
None.
Return value
BOOL-TRUE success, FALSE fail.
Description
This method updates the overlay window.
object.PauseOverlay
Parameters
None.
Return value
BOOL-TRUE success, FALSE fail.
Description
This method pauses the overlay window.
object.ResumeOverlay
Parameters
None.
Return value
BOOL-TRUE success, FALSE fail.
Description
This method resumes the overlay window.
object.CaptureFrame
Parameters
None.
Return value
BOOL-TRUE success, FALSE fail.
Description
This method captures the frame to buffer.
object.BCaptureFrame lpbuffer,nBufSize
Parameters
lpbuffer - the memory address of frame buffer.
nBufSize - size,in Byte, of frame buffer.
Return value
BOOL-TRUE success, FALSE fail.
Description
This method captures the frame to frame buffer.
object.SaveBMPFile bitmapWidth,bitmapHeight,nRGBvalue
Parameters
bitmapWidth - the width of video frame
bitmapHeight - the height of video frame
nRGBvalue - color format of bitmap(0 -> true color, 1 -> 256 color)
Return value
BOOL-TRUE success, FALSE fail.
Description
This method saves the buffer to a BMP file.
object.SaveImgFile bitmapWidth,bitmapHeight,nRGBvalue
Parameters
bitmapWidth - the width of video frame
bitmapHeight - the height of video frame
nRGBvalue - color format of bitmap(0 -> true color, 1 -> 256 color)
Return value
BOOL-TRUE success, FALSE fail.
Description
This method saves the buffer to different image file formats.
object.BSaveImgFile biWidth,biHeight,biBitCount,biCompression,biXPelsPerMeter,biYPelsPerMeter,biClrUsed,biClrImportant
Parameters
biWidth - member of BITMAPINFOHEADER.
biHeight - member of BITMAPINFOHEADER.
biBitCount - member of BITMAPINFOHEADER.
biCompression - member of BITMAPINFOHEADER.
biXPelsPerMeter - member of BITMAPINFOHEADER.
biYPelsPerMeter -member of BITMAPINFOHEADER.
biClrUsed - member of BITMAPINFOHEADER.
biClrImportant - member of BITMAPINFOHEADER.
Return value
BOOL-TRUE success, FALSE fail.
Description
This method saves the buffer to different image file formats.
object.GetBMPFileWidth
Parameters
None.
Return value
nLoadBMPWidth - the width of current loaded bitmap file.
Description
This method get the width of current loaded bitmap file.
object.GetBMPFileHeight
Parameters
None.
Return value
nLoadBMPHeight - the height of current loaded bitmap file.
Description
This method get the height of current loaded bitmap file.
object.LoadBMPFile HWND,CurVFormat
Parameters
HWND - Handle of window.
CurVFormat - current video format(NTSC=1, PAL-BG=2, PAL-DK=2, PAL-I=2, PAL-M=3, PAL-N=4 and SECAM=5).
Return value
BOOL-TRUE success, FALSE fail.
Description
This method load a BMP file.
object.BLoadBMPFile hwnd,lpbuffer,nCurVFormat
Parameters
hwnd - Handle to window.
lpbuffer - the memory address of the frame buffer.
CurVFormat - current video format(NTSC=1, PAL-BG=2, PAL-DK=2, PAL-I=2, PAL-M=3, PAL-N=4 and SECAM=5).
Return value
BOOL-TRUE success, FALSE fail.
Description
This method load a BMP file to frame buffer and paint preview on window.
</font></pre>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -