Visual Basic (Declaration) | |
---|---|
Public Function New( _ ByVal numberOfBalls As Integer, _ ByVal size As Integer, _ ByVal sizeVariation As Integer, _ ByVal highLightAngle As Integer, _ ByVal highLightColor As RasterColor, _ ByVal backGroundColor As RasterColor, _ ByVal shadingColor As RasterColor, _ ByVal ripple As Integer, _ ByVal ballColors() As RasterColor, _ ByVal ballColorOpacity As Integer, _ ByVal ballColorOpacityVariation As Integer, _ ByVal flags As ColoredBallsCommandFlags _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public ColoredBallsCommand( int numberOfBalls, int size, int sizeVariation, int highLightAngle, RasterColor highLightColor, RasterColor backGroundColor, RasterColor shadingColor, int ripple, RasterColor[] ballColors, int ballColorOpacity, int ballColorOpacityVariation, ColoredBallsCommandFlags flags ) |
C++/CLI | |
---|---|
public: ColoredBallsCommand( int numberOfBalls, int size, int sizeVariation, int highLightAngle, RasterColor highLightColor, RasterColor backGroundColor, RasterColor shadingColor, int ripple, array<RasterColor>^ ballColors, int ballColorOpacity, int ballColorOpacityVariation, ColoredBallsCommandFlags flags ) |
Parameters
- numberOfBalls
- Number of balls that will be drawn in the image. Only positive values are accepted.
- size
- Average balls size, in pixels. Only positive values are accepted.
- sizeVariation
- Balls size variation. Valid values range from 0 to 100. Use 0 to have all balls the same size. Use 100 to have the size vary from 0 to 2 X uSize.
- highLightAngle
- Light source direction of the highlight color on the ball. This value is in hundredths of degrees (+/-). A positive value will rotate the highlight color clockwise, while a negative value will rotate the highlight color counter-clockwise. Valid values range from -36000 to + 36000.
- highLightColor
- Highlight color.
- backGroundColor
- Backgound color.
- shadingColor
- Shade (or gradient) color.
- ripple
- The number of shades that are used to produce the background. This value is divided internally by 100. For example, if lRipple = 200 the actual frequency is 2.
- ballColors
- An array of ball colors.
- ballColorOpacity
- Average ball color opacity. Valid values range from: 0 to 255 for 8-bit, 0 to 4095 for 12-bit, 0 to 65535 for 16-bit.
- ballColorOpacityVariation
- Ball color opacity variation. Valid values range from 0 to 100. Use 0 to have all pixels assigned the same opacity. Use 100 to have the opacity vary from 0 to 2 X ballColorOpacity.
- flags
- Enumeration that indicates the background color , shade (or gradient) type, ball type and ball color type.
Run the ColoredBallsCommand on an image.
Visual Basic | Copy Code |
---|---|
Public Sub ColoredBallsConstructorExample() |
C# | Copy Code |
---|---|
public void ColoredBallsConstructorExample() |
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family