DisplayMaterialSetBitmapTexture Method (String, Bitmap, Boolean) |
Uses the pixels of an in-memory bitmap as this material's bitmap texture, without
writing an image file.
The pixels are copied into TextureCache under name.
Calling this again with the same name replaces them in place, and the change shows up
on the next redraw.
Namespace:
Rhino.Display
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 9.0
Syntaxpublic bool SetBitmapTexture(
string name,
Bitmap bitmap,
bool front
)
Public Function SetBitmapTexture (
name As String,
bitmap As Bitmap,
front As Boolean
) As Boolean
Parameters
- name
- Type: SystemString
The name to cache the pixels under. See Set(String, Bitmap).
- bitmap
- Type: System.DrawingBitmap
The pixels to use. - front
- Type: SystemBoolean
true for the front material, false for the back material.
Return Value
Type:
Booleantrue on success.
See Also