Class TDSVideoWindowEx2

Unit

DSPack

Declaration

type TDSVideoWindowEx2 = class(, , )

Description

A alternative to the regular Video Renderer (TVideoWindow), that give a easy way to overlay graphics onto your video in your application.

Methods

Overview

Public constructor Create(AOwner: TComponent); override;
Public destructor Destroy; override;
Public procedure ClearBack;
Public procedure NormalPlayback;
Public procedure StartDesktopPlayBack(OnMonitor : TMonitor); overload;
Public procedure StartDesktopPlayback; overload;
Public procedure StartFullScreen(OnMonitor : TMonitor); overload;
Public procedure StartFullScreen; overload;

Description

Public constructor Create(AOwner: TComponent); override;

constructor method.

Public destructor Destroy; override;

destructor method.

Public procedure ClearBack;

Clear the graphic ontop of DSVideoWindowEx.

Public procedure NormalPlayback;

Return to normal window playback from Fullscreen or Desktop mode.

Public procedure StartDesktopPlayBack(OnMonitor : TMonitor); overload;

Use your Desktop as the Video renderer. The video will display as a "wallpaper" on your Desktop on the specifyed monitor

Public procedure StartDesktopPlayback; overload;

Use your Desktop as the Video renderer. The video will display as a "wallpaper" on your Desktop

Public procedure StartFullScreen(OnMonitor : TMonitor); overload;

Start playback in fullscreen on specifyed Monitor

Public procedure StartFullScreen; overload;

Start playback in fullscreen

Properties

Overview

Private property AspectRatio: TRatioModes;
Private property AutoHideCursor: Integer;
Public property Canvas;
Public property Capabilities: TDSVideoWindowEx2Caps;
Private property Color;
Private property ColorControl: TColorControl;
Public property ColorKey: TColor;
Public property DesktopPlayback: Boolean;
Private property DigitalZoom: Integer;
Private property FilterGraph: TFilterGraph;
Public property FullScreen: boolean;
Private property FullScreenTopMost: boolean;
Private property NoScreenSaver: Boolean;
Private property OnColorKeyChanged: TNotifyEvent;
Private property OnCursorShowHide: TCursorVisibleEvent;
Private property OnOverlayVisible: TOverlayVisibleEvent;
Private property OnPaint: TNotifyevent;
Public property OverlayVisible: Boolean;

Description

Private property AspectRatio: TRatioModes;

The AspectRatio property sets the aspect ratio correction mode for window resizing. rmSTRETCHED : No aspect ratio correction. rmLETTERBOX : Put the video in letterbox format. Paint background color in the excess region so the video is not distorted. rmCROP : Crop the video to the correct aspect ratio.

Private property AutoHideCursor: Integer;

Set the amounts of milliseconds befor the cursor is hidden, if it is not moved. Setting the value to 0 will disable this feature.

Public property Canvas;

WARNING: @inherited

Public property Capabilities: TDSVideoWindowEx2Caps;

TDSVideoWindowEx2Caps

Private property Color;

 

Private property ColorControl: TColorControl;

TColorControl

Public property ColorKey: TColor;

The Colorkey is the color that the Overlay Mixer Filter used by DSVideoWindowEx sees as transparent, when you draw ontop of the movie always set the canvas’s brush color to this color or set the style to bsclear. Note: The colors returned through this method vary depending on the current display mode. if the colors are 8-bit palettized, they will be bright system colors (such as magenta). if the display is in a true-color mode, they will be shades of black.

Public property DesktopPlayback: Boolean;

repporting if you are currently playing on the Desktop.

Private property DigitalZoom: Integer;

Specify a Zoom factor from 0 to 99 procent.

Private property FilterGraph: TFilterGraph;

The TFilterGraph component

Public property FullScreen: boolean;

repporting if you are currently playing in fullscreen.

Private property FullScreenTopMost: boolean;

Select if the VideoWindow it topmost or not.

Private property NoScreenSaver: Boolean;

Setting this to true will prevent the screen to go into screensaver or powerdown.

Private property OnColorKeyChanged: TNotifyEvent;

Event to tell the main application that the Colorkey has changed. Note: if you have controls placed ontop of your VideoWindow that need to act as transparent, set there color to the same as the Colorkey.

Private property OnCursorShowHide: TCursorVisibleEvent;

This event accure when the cursor change from showing to hiding or from hiding to showing.

Private property OnOverlayVisible: TOverlayVisibleEvent;

This event accure when the Visible state of the overlay changes Note: Most used to hide the video in the player window when going to DesktopPlayback.

Private property OnPaint: TNotifyevent;

 

Public property OverlayVisible: Boolean;

Check this property to see if the overlay is visible when you draw on DSVideoWindowEx's canvas, if it is visible you should set your brush color to the same as the VideoColor and if not set your brush to the same color as DSVideoWindowEx color.


Generated by DIPasDoc 0.8.0 on Sun 1 Jun 2003 23:53:07