Click or drag to resize

MaterialSetBitmapTexture Method (String, Bitmap)

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.DocObjects
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 9.0
Syntax
public bool SetBitmapTexture(
	string name,
	Bitmap bitmap
)

Parameters

name
Type: SystemString
The name to cache the pixels under. See Set(String, Bitmap).
bitmap
Type: System.DrawingBitmap
The pixels to use.

Return Value

Type: Boolean
true on success.
See Also