Click or drag to resize

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
Syntax
public bool SetBitmapTexture(
	string name,
	Bitmap bitmap,
	bool front
)

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: Boolean
true on success.
See Also