Class VLImageDisplay.TVLImageDisplayLayer
From Mitov Wiki Doc
(Difference between revisions)
(Automated Syncronization with Documentation) |
(Automated Syncronization with Documentation) |
||
Line 35: | Line 35: | ||
== Description == | == Description == | ||
Add this layer to draw video over the frames. | Add this layer to draw video over the frames. | ||
+ | |||
+ | |||
+ | |||
+ | <b>Diagram:</b> | ||
+ | |||
+ | [[Image:VLImageDisplayLayer_Preview.png]] | ||
Line 55: | Line 61: | ||
*[[Method procedure VLImageDisplay.TVLImageDisplayLayer.DoLayerMouseEnter()|procedure DoLayerMouseEnter()]] | *[[Method procedure VLImageDisplay.TVLImageDisplayLayer.DoLayerMouseEnter()|procedure DoLayerMouseEnter()]] | ||
*[[Method procedure VLImageDisplay.TVLImageDisplayLayer.DoLayerMouseLeave()|procedure DoLayerMouseLeave()]] | *[[Method procedure VLImageDisplay.TVLImageDisplayLayer.DoLayerMouseLeave()|procedure DoLayerMouseLeave()]] | ||
+ | *[[Method function VLImageDisplay.TVLImageDisplayLayer.GetChachedData(TObject) : TObject|function GetChachedData(ALink : TObject) : TObject]] | ||
*[[Method procedure VLImageDisplay.TVLImageDisplayLayer.SetChachedData(TObject;TObject)|procedure SetChachedData(ALink : TObject; AData : TObject)]] | *[[Method procedure VLImageDisplay.TVLImageDisplayLayer.SetChachedData(TObject;TObject)|procedure SetChachedData(ALink : TObject; AData : TObject)]] | ||
+ | *[[Method function VLImageDisplay.TVLImageDisplayLayer.GetOperations() : TLPDrawLayerOperations|function GetOperations() : TLPDrawLayerOperations]] | ||
*[[Method procedure VLImageDisplay.TVLImageDisplayLayer.AddLayerLink(TLPLayerCollectionItem)|procedure AddLayerLink(ALink : TLPLayerCollectionItem)]] | *[[Method procedure VLImageDisplay.TVLImageDisplayLayer.AddLayerLink(TLPLayerCollectionItem)|procedure AddLayerLink(ALink : TLPLayerCollectionItem)]] | ||
*[[Method procedure VLImageDisplay.TVLImageDisplayLayer.RemoveLayerLink(TLPLayerCollectionItem)|procedure RemoveLayerLink(ALink : TLPLayerCollectionItem)]] | *[[Method procedure VLImageDisplay.TVLImageDisplayLayer.RemoveLayerLink(TLPLayerCollectionItem)|procedure RemoveLayerLink(ALink : TLPLayerCollectionItem)]] | ||
+ | *[[Method function VLImageDisplay.TVLImageDisplayLayer.GetName() : String|function GetName() : String]] | ||
+ | *[[Method function VLImageDisplay.TVLImageDisplayLayer.WriteLock() : IOWLockSection|function WriteLock() : IOWLockSection]] | ||
*[[Method procedure VLImageDisplay.TVLImageDisplayLayer.SetBounds(Integer;Integer;Integer;Integer)|procedure SetBounds(ALeft : Integer; ATop : Integer; AWidth : Integer; AHeight : Integer)]] | *[[Method procedure VLImageDisplay.TVLImageDisplayLayer.SetBounds(Integer;Integer;Integer;Integer)|procedure SetBounds(ALeft : Integer; ATop : Integer; AWidth : Integer; AHeight : Integer)]] | ||
== From [[Class VLImageDisplay.TVLImageDisplay|TVLImageDisplay]] == | == From [[Class VLImageDisplay.TVLImageDisplay|TVLImageDisplay]] == | ||
+ | |||
+ | == Properties == | ||
+ | |||
+ | === Published === | ||
+ | *[[Property VLImageDisplay.TVLImageDisplay.RenderMode|RenderMode]] - Specifies the desired rendering mode. | ||
== Methods == | == Methods == | ||
=== Public === | === Public === | ||
+ | *[[Method procedure VLImageDisplay.TVLImageDisplay.DrawTo(IGPGraphics;Boolean;Single;Single)|procedure DrawTo(AGraphics : IGPGraphics; AContoursOnly : Boolean; AWidth : Single; AHeight : Single)]] | ||
*[[Method procedure VLImageDisplay.TVLImageDisplay.Clear()|procedure Clear()]] - Clears the Display. | *[[Method procedure VLImageDisplay.TVLImageDisplay.Clear()|procedure Clear()]] - Clears the Display. | ||
*[[Method procedure VLImageDisplay.TVLImageDisplay.Invalidate()|procedure Invalidate()]] | *[[Method procedure VLImageDisplay.TVLImageDisplay.Invalidate()|procedure Invalidate()]] | ||
Line 97: | Line 113: | ||
*[[Property VLCommonDisplay.TVLCommonDisplay.Center|Center]] - Center the image in the display. | *[[Property VLCommonDisplay.TVLCommonDisplay.Center|Center]] - Center the image in the display. | ||
*[[Property VLCommonDisplay.TVLCommonDisplay.Stretch|Stretch]] - Stretch the image to the display size. | *[[Property VLCommonDisplay.TVLCommonDisplay.Stretch|Stretch]] - Stretch the image to the display size. | ||
+ | *[[Property VLCommonDisplay.TVLCommonDisplay.StretchMax|StretchMax]] - Stretches the image to fill completely the frame, while preserving the aspect ration. | ||
*[[Property VLCommonDisplay.TVLCommonDisplay.Proportional|Proportional]] - Keep the image proportional(Preserve aspect ratio). | *[[Property VLCommonDisplay.TVLCommonDisplay.Proportional|Proportional]] - Keep the image proportional(Preserve aspect ratio). | ||
*[[Property VLCommonDisplay.TVLCommonDisplay.Color|Color]] | *[[Property VLCommonDisplay.TVLCommonDisplay.Color|Color]] | ||
Line 130: | Line 147: | ||
=== Public === | === Public === | ||
+ | *[[Method function SLControlCollection.TSLCustomControlItem.GetParentComponent() : TComponent|function GetParentComponent() : TComponent]] | ||
+ | *[[Method function SLControlCollection.TSLCustomControlItem.HasParent() : Boolean|function HasParent() : Boolean]] | ||
*[[Method procedure SLControlCollection.TSLCustomControlItem.SetParent(TWinControl)|procedure SetParent(AParent : TWinControl)]] | *[[Method procedure SLControlCollection.TSLCustomControlItem.SetParent(TWinControl)|procedure SetParent(AParent : TWinControl)]] | ||
*[[Method function SLControlCollection.TSLCustomControlItem.GetHasEnable() : Boolean|function GetHasEnable() : Boolean]] | *[[Method function SLControlCollection.TSLCustomControlItem.GetHasEnable() : Boolean|function GetHasEnable() : Boolean]] | ||
*[[Method function SLControlCollection.TSLCustomControlItem.GetCanDisable() : Boolean|function GetCanDisable() : Boolean]] | *[[Method function SLControlCollection.TSLCustomControlItem.GetCanDisable() : Boolean|function GetCanDisable() : Boolean]] | ||
*[[Method procedure SLControlCollection.TSLCustomControlItem.SetParentComponent(TComponent)|procedure SetParentComponent(AValue : TComponent)]] | *[[Method procedure SLControlCollection.TSLCustomControlItem.SetParentComponent(TComponent)|procedure SetParentComponent(AValue : TComponent)]] | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[[Category:Layers]][[Category:Classes]] | [[Category:Layers]][[Category:Classes]] |
Revision as of 20:28, 10 June 2013
This is a Beta Read Only version of this page. Please review and send recommendations to mitov@mitov.com. We will enable the editing as soon as we are happy with the overall Wiki site.
Package: VideoLabBasicPkg
Unit: VLImageDisplay
Inherits: TVLImageDisplay
Contents |
Syntax
Delphi:
type TVLImageDisplayLayer = class( TVLImageDisplay, ILPDrawItem )
C++ Builder:
class TVLImageDisplayLayer : public TVLImageDisplay
Visual C++ (MFC):
class CTVLImageDisplayLayer : public CTVLImageDisplay
C# (.NET):
public ref class TVLImageDisplayLayer : Mitov.VideoLab.ImageDisplay
Summary
Layer drawing video.
Description
Add this layer to draw video over the frames.
Diagram:
Example:
Methods
Public
- procedure DoLayerBegin(ACanvas : TLPCanvas; AWidth : Integer; AHeight : Integer; AXCoeff : Single; AYCoeff : Single)
- procedure DoLayerEnd()
- procedure DoLayerDraw(ACanvas : TLPCanvas; AWidth : Integer; AHeight : Integer; AXCoeff : Single; AYCoeff : Single; AContoursOnly : Boolean)
- procedure DoLayerMouseMove(AShift : TShiftState; AX : Integer; AY : Integer)
- procedure DoLayerMouseDown(Button : TMouseButton; Shift : TShiftState; X : Integer; Y : Integer)
- procedure DoLayerMouseUp(Button : TMouseButton; Shift : TShiftState; X : Integer; Y : Integer)
- procedure DoLayerMouseWheelDown(AShift : TShiftState; AX : Integer; AY : Integer)
- procedure DoLayerMouseWheelUp(AShift : TShiftState; AX : Integer; AY : Integer)
- procedure DoLayerMouseEnter()
- procedure DoLayerMouseLeave()
- function GetChachedData(ALink : TObject) : TObject
- procedure SetChachedData(ALink : TObject; AData : TObject)
- function GetOperations() : TLPDrawLayerOperations
- procedure AddLayerLink(ALink : TLPLayerCollectionItem)
- procedure RemoveLayerLink(ALink : TLPLayerCollectionItem)
- function GetName() : String
- function WriteLock() : IOWLockSection
- procedure SetBounds(ALeft : Integer; ATop : Integer; AWidth : Integer; AHeight : Integer)
From TVLImageDisplay
Properties
Published
- RenderMode - Specifies the desired rendering mode.
Methods
Public
- procedure DrawTo(AGraphics : IGPGraphics; AContoursOnly : Boolean; AWidth : Single; AHeight : Single)
- procedure Clear() - Clears the Display.
- procedure Invalidate()
From TVLCommonImageDisplay
Properties
Published
- AutoClear - Auto clear the display at the end of the video.
- AspectRatio - Specifies the desired aspect ration for the display.
- TabStop
Methods
Public
- procedure Clear() - Clears the display.
- procedure DisplayBitmap(ABitmap : TBitmap) - Displays the content of a bitmap.
- procedure DisplayBitmap(ABitmap : TVLBitmap) - Displays the content of a bitmap.
- procedure DisplayImage(AImage : IVLImageBuffer) - Displays the content of an image buffer.
Pins
- InputPin - The Video Input Pin of the display.
- UserControlOutputPin - User control source pin.
From TVLCommonDisplay
Properties
Published
- AutoSize - Auto-size to display to the video size.
- Center - Center the image in the display.
- Stretch - Stretch the image to the display size.
- StretchMax - Stretches the image to fill completely the frame, while preserving the aspect ration.
- Proportional - Keep the image proportional(Preserve aspect ratio).
- Color
Public
- ImageHeight - Returns the Height of the image in the display.
- ImageWidth - Returns the Width of the image in the display.
- ImageTop - Returns the Top position of the image in the display.
- ImageLeft - Returns the Left position of the image in the display.
Methods
Public
- procedure SetParent(AParent : TWinControl)
- function ScreenToImage(AValue : TPoint) : TPoint - Converts from screen coordinates into video frame coordinates.