Creates a 3D from a sequence of bitmaps.
Namespace: HighGLAssembly: HighGL (in HighGL.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public Texture(
IEnumerable<Bitmap> source,
int width,
int height,
int depth,
double resample = 1,
PixelType pixelType = PixelType.UnsignedByte,
PixelFormat pixelFormat = PixelFormat.Bgr,
PixelInternalFormat pixelInternalFormat = PixelInternalFormat.Rgb8
) |
Visual Basic |
---|
Public Sub New ( _
source As IEnumerable(Of Bitmap), _
width As Integer, _
height As Integer, _
depth As Integer, _
Optional resample As Double = 1, _
Optional pixelType As PixelType = PixelType.UnsignedByte, _
Optional pixelFormat As PixelFormat = PixelFormat.Bgr, _
Optional pixelInternalFormat As PixelInternalFormat = PixelInternalFormat.Rgb8 _
) |
Visual C++ |
---|
public:
Texture(
IEnumerable<Bitmap^>^ source,
int width,
int height,
int depth,
double resample = 1,
PixelType pixelType = PixelType::UnsignedByte,
PixelFormat pixelFormat = PixelFormat::Bgr,
PixelInternalFormat pixelInternalFormat = PixelInternalFormat::Rgb8
) |
Parameters
- source
- Type: System.Collections.Generic..::..IEnumerable<(Of <(<'Bitmap>)>)>
The bitmap sequence. Bitmaps are disposed automatically after being read into the texture.
- width
- Type: System..::..Int32
The width of the bitmaps in the sequence. Must be identical for all bitmaps.
- height
- Type: System..::..Int32
The height of the bitmaps in the sequence. Must be identical for all bitmaps.
- depth
- Type: System..::..Int32
The depth of the texture, that is the number of bitmaps in the sequence.
- resample (Optional)
- Type: System..::..Double
The resample factor. 1 means original resolution, 2 means half resolution. Must be between 1 and 5.
- pixelType (Optional)
- Type: PixelType
The pixel type used for the texture.
- pixelFormat (Optional)
- Type: PixelFormat
The pixel format used for the texture.
- pixelInternalFormat (Optional)
- Type: PixelInternalFormat
The internal pixel format used for the texture.
Exceptions
See Also