CodeCarvings.Piczard
GetContentLocation Method
See Also  Send Feedback
CodeCarvings.Piczard.Filters.Watermarks Namespace > Watermark Class : GetContentLocation Method

containerSize
The size of the source Image expressed in pixels.
contentSize
The size of the watermark expressed in pixels.
outputResolution
The output resolution (DPI) used to process the image.
Gets the coordinates (X/Y expressed in pixels) of the watermark to apply.

Syntax

Visual Basic (Declaration)  
Protected Overridable Function GetContentLocation( _
   ByVal containerSize As Size, _
   ByVal contentSize As Size, _
   ByVal outputResolution As Single _
) As Point
C#  
protected virtual Point GetContentLocation( 
   Size containerSize,
   Size contentSize,
   float outputResolution
)

Parameters

containerSize
The size of the source Image expressed in pixels.
contentSize
The size of the watermark expressed in pixels.
outputResolution
The output resolution (DPI) used to process the image.

Return Value

The coordinates (expressed in pixels) where the watermark should be placed.

Requirements

Platforms: Windows 8, Windows 7, Windows Vista, Windows XP Professional, Windows 2000 - Windows Server family: 2012, 2008.R2, 2008, 2003, 2000

See Also

©2013 Sergio Turolla. All Rights Reserved.