AGI STK Graphics 11Send comments on this topic.
InitializeWithFormatTypeAndOrientation Method (IAgStkGraphicsRasterAttributesFactory)
See Also 
Width
The width of the raster in pixels.
Height
The height of the raster in pixels.
RasterFormat
The Raster Format.
RasterType
The Raster Type.
RasterOrientation
The Raster Orientation.
Windows






Windows & Linux

Description

Initializes a new instance with the width and height of the raster in pixels, and the given Raster Format, Raster Type, and Raster Orientation.

Syntax

[Visual Basic .NET]
Public Function InitializeWithFormatTypeAndOrientation( _
   ByVal Width As Integer, _
   ByVal Height As Integer, _
   ByVal RasterFormat As AgEStkGraphicsRasterFormat, _
   ByVal RasterType As AgEStkGraphicsRasterType, _
   ByVal RasterOrientation As AgEStkGraphicsRasterOrientation _
) As IAgStkGraphicsRasterAttributes
[Managed C++]
public: IAgStkGraphicsRasterAttributes^ InitializeWithFormatTypeAndOrientation(
   int Width,
   int Height,
   AgEStkGraphicsRasterFormat RasterFormat,
   AgEStkGraphicsRasterType RasterType,
   AgEStkGraphicsRasterOrientation RasterOrientation
);
[Java]
public IAgStkGraphicsRasterAttributes initializeWithFormatTypeAndOrientation(
   ppInteger Width,
   ppInteger Height,
   AgEStkGraphicsRasterFormat RasterFormat,
   AgEStkGraphicsRasterType RasterType,
   AgEStkGraphicsRasterOrientation RasterOrientation
);
[Unmanaged C++]
public: HRESULT InitializeWithFormatTypeAndOrientation(
   int Width,
   int Height,
   AgEStkGraphicsRasterFormat RasterFormat,
   AgEStkGraphicsRasterType RasterType,
   AgEStkGraphicsRasterOrientation RasterOrientation,
   IAgStkGraphicsRasterAttributes ** ReturnValue
);

Parameters

Width
The width of the raster in pixels.
Height
The height of the raster in pixels.
RasterFormat
MemberValueDescription
eStkGraphicsRasterFormatRed0The format of the Raster is a single band consisting of red values.
eStkGraphicsRasterFormatGreen1The format of the Raster is a single band consisting of green values.
eStkGraphicsRasterFormatBlue2The format of the Raster is a single band consisting of blue values.
eStkGraphicsRasterFormatAlpha3The format of the Raster is a single band consisting of alpha values.
eStkGraphicsRasterFormatRgb4The format of the Raster is three bands consisting of red, green, and blue values.
eStkGraphicsRasterFormatBgr5The format of the Raster is three bands consisting of blue, green, and red values.
eStkGraphicsRasterFormatRgba6The format of the Raster is four bands consisting of red, green, blue, and alpha values.
eStkGraphicsRasterFormatBgra7The format of the Raster is four bands consisting of blue, green, red, and alpha values.
eStkGraphicsRasterFormatLuminance8The format of the Raster is a single band consisting of luminance values.
eStkGraphicsRasterFormatLuminanceAlpha9The format of the Raster is two bands consisting of luminance and alpha values.
The Raster Format.
RasterType
MemberValueDescription
eStkGraphicsRasterTypeUnsignedByte0Each value contained within a band can be represented with an unsigned byte.
eStkGraphicsRasterTypeByte1Each value contained within a band can be represented with a byte.
eStkGraphicsRasterTypeUnsignedShort2Each value contained within a band can be represented with an unsigned short.
eStkGraphicsRasterTypeShort3Each value contained within a band can be represented with a short.
eStkGraphicsRasterTypeUnsignedInt4Each value contained within a band can be represented with an unsigned int.
eStkGraphicsRasterTypeInt5Each value contained within a band can be represented with an int.
eStkGraphicsRasterTypeFloat6Each value contained within a band can be represented with a float.
eStkGraphicsRasterTypeDouble7Each value contained within a band can be represented with a double.
The Raster Type.
RasterOrientation
MemberValueDescription
eStkGraphicsRasterOrientationTopToBottom0The raster has a top to bottom orientation.
eStkGraphicsRasterOrientationBottomToTop1The raster has a bottom to top orientation.
The Raster Orientation.

See Also

© 2018 Analytical Graphics, Inc. All Rights Reserved.