Creates a 2D texture from a bitmap.
Namespace: HighGLAssembly: HighGL (in HighGL.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public Texture(
Bitmap source,
PixelType pixelType = PixelType.UnsignedByte,
PixelFormat pixelFormat = PixelFormat.Bgr,
PixelInternalFormat pixelInternalFormat = PixelInternalFormat.Rgb8
) |
Visual Basic |
---|
Public Sub New ( _
source As Bitmap, _
Optional pixelType As PixelType = PixelType.UnsignedByte, _
Optional pixelFormat As PixelFormat = PixelFormat.Bgr, _
Optional pixelInternalFormat As PixelInternalFormat = PixelInternalFormat.Rgb8 _
) |
Visual C++ |
---|
public:
Texture(
Bitmap^ source,
PixelType pixelType = PixelType::UnsignedByte,
PixelFormat pixelFormat = PixelFormat::Bgr,
PixelInternalFormat pixelInternalFormat = PixelInternalFormat::Rgb8
) |
Parameters
- source
- Type: System.Drawing..::..Bitmap
The source bitmap. The bitmap is disposed automatically after being read into the texture.
- 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