LEADTOOLS (Leadtools assembly)

RasterColor16_ObjectiveC Method

Show in webframe
Example 







The red component value for the new structure. Valid values are MinimumComponent through MaximumComponent.
The green component value for the new structure. Valid values are MinimumComponent through MaximumComponent.
The blue component value for the new structure. Valid values are MinimumComponent through MaximumComponent.
Creates a new RasterColor16 structure with specific values for red, green and blue.
Syntax
public static RasterColor16 RasterColor16_ObjectiveC( 
   int red,
   int green,
   int blue
)
'Declaration
 
Public Shared Function RasterColor16_ObjectiveC( _
   ByVal red As Integer, _
   ByVal green As Integer, _
   ByVal blue As Integer _
) As RasterColor16
'Usage
 
Dim red As Integer
Dim green As Integer
Dim blue As Integer
Dim value As RasterColor16
 
value = RasterColor16.RasterColor16_ObjectiveC(red, green, blue)
public static RasterColor16 RasterColor16_ObjectiveC( 
   int red,
   int green,
   int blue
)
+(id)colorWithRed:(int)red 
            green:(int)green 
             blue:(int)blue;
            

            
 function Leadtools.RasterColor16.RasterColor16_ObjectiveC( 
   red ,
   green ,
   blue 
)
public:
static RasterColor16 RasterColor16_ObjectiveC( 
   int red,
   int green,
   int blue
) 

Parameters

red
The red component value for the new structure. Valid values are MinimumComponent through MaximumComponent.
green
The green component value for the new structure. Valid values are MinimumComponent through MaximumComponent.
blue
The blue component value for the new structure. Valid values are MinimumComponent through MaximumComponent.
Remarks
This structure has no alpha component.
Example
Copy Code  
Imports Leadtools

  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
using Leadtools;

      
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);
   }
}
using Leadtools;

      
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);
}
using Leadtools;
using Leadtools.Windows.Media;

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);
}
Imports Leadtools
Imports Leadtools.Windows.Media

      
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
Requirements

Target Platforms

See Also

Reference

RasterColor16 Structure
RasterColor16 Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.