Leadtools Namespace > RasterColor16 Structure : RasterColor16 Constructor |
'Declaration Public Function New( _ ByVal red As Integer, _ ByVal green As Integer, _ ByVal blue As Integer _ )
'Usage Dim red As Integer Dim green As Integer Dim blue As Integer Dim instance As New RasterColor16(red, green, blue)
Public Sub RasterColor16Example() ' create a white color Dim white16 As RasterColor16 = New RasterColor16(RasterColor16.MaximumComponent, RasterColor16.MaximumComponent, RasterColor16.MaximumComponent) ' create a black color Dim black16 As RasterColor16 = New RasterColor16(RasterColor16.MinimumComponent, RasterColor16.MinimumComponent, RasterColor16.MinimumComponent) End Sub
public void RasterColor16Example() { // create a white color RasterColor16 white16 = new RasterColor16(RasterColor16.MaximumComponent, RasterColor16.MaximumComponent, RasterColor16.MaximumComponent); // create a black color RasterColor16 black16 = new RasterColor16(RasterColor16.MinimumComponent, RasterColor16.MinimumComponent, RasterColor16.MinimumComponent); }
RasterColorExamples.prototype.RasterColor16Example = function() { with (Leadtools) { // create a white color var white16 = RasterColor16Helper.create(RasterColor16Helper.maximumComponent, RasterColor16Helper.maximumComponent, RasterColor16Helper.maximumComponent); // create a black color var black16 = RasterColor16Helper.create(RasterColor16Helper.minimumComponent, RasterColor16Helper.minimumComponent, RasterColor16Helper.minimumComponent); } }
[TestMethod] public void RasterColor16Example() { // create a white color RasterColor16 white16 = RasterColor16Helper.Create(RasterColor16Helper.MaximumComponent, RasterColor16Helper.MaximumComponent, RasterColor16Helper.MaximumComponent); // create a black color RasterColor16 black16 = RasterColor16Helper.Create(RasterColor16Helper.MinimumComponent, RasterColor16Helper.MinimumComponent, RasterColor16Helper.MinimumComponent); }
public void RasterColor16Example() { // create a white color RasterColor16 white16 = new RasterColor16(RasterColor16.MaximumComponent, RasterColor16.MaximumComponent, RasterColor16.MaximumComponent); // create a black color RasterColor16 black16 = new RasterColor16(RasterColor16.MinimumComponent, RasterColor16.MinimumComponent, RasterColor16.MinimumComponent); }
<TestMethod> _
Public Sub RasterColor16Example()
' create a white color
Dim white16 As RasterColor16 = New RasterColor16(RasterColor16.MaximumComponent, RasterColor16.MaximumComponent, RasterColor16.MaximumComponent)
' create a black color
Dim black16 As RasterColor16 = New RasterColor16(RasterColor16.MinimumComponent, RasterColor16.MinimumComponent, RasterColor16.MinimumComponent)
End Sub
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2