C# Class RhinoCyclesCore.Converters.BitmapConverter

ファイルを表示 Open project: mcneel/RhinoCycles

Public Methods

Method Description
ApplyGammaToTextures ( float gamma ) : void
EnvironmentBitmapFromEvaluator ( Rhino.Render.RenderEnvironment rm, CyclesTextureImage teximg, float gamma, bool floatAsByte, bool planarProjection ) : void

Get environment bitmap from texture evaluator

ReadByteBitmapFromBitmap ( uint id, int pwidth, int pheight, Bitmap bm ) : ByteBitmap

Private Methods

Method Description
InternalMaterialBitmapFromEvaluator ( CyclesShader shader, Rhino.Render.RenderTexture renderTexture, Rhino.Render.RenderMaterial textureType, Rhino rhinotfm, uint rId, Rhino.Render.TextureEvaluator actualEvaluator, TextureProjectionMode projectionMode, TextureEnvironmentMappingMode envProjectionMode ) : void
MaterialBitmapFromEvaluator ( CyclesShader &shader, Rhino.Render.RenderMaterial rm, Rhino.Render.RenderTexture renderTexture, Rhino.Render.RenderMaterial textureType ) : void

Get material bitmap from texture evaluator

ReadByteBitmapFromEvaluator ( int pwidth, int pheight, Rhino.Render.TextureEvaluator textureEvaluator, bool isEnvironment, bool planarProjection ) : byte[]
ReadFloatBitmapFromEvaluator ( int pwidth, int pheight, Rhino.Render.TextureEvaluator textureEvaluator, bool isEnvironment, bool planarProjection ) : float[]

Read image as float array from texture evaluator.

RetrieveBytesImg ( uint rId, int pwidth, int pheight, Rhino.Render.TextureEvaluator textureEvaluator, bool isEnv, bool planarProjection, bool isLinear ) : ByteBitmap
RetrieveFloatsImg ( uint rId, int pwidth, int pheight, Rhino.Render.TextureEvaluator textureEvaluator, bool isEnv, bool planarProjection, bool isLinear ) : FloatBitmap

Method Details

ApplyGammaToTextures() public static method

public static ApplyGammaToTextures ( float gamma ) : void
gamma float
return void

EnvironmentBitmapFromEvaluator() public static method

Get environment bitmap from texture evaluator
public static EnvironmentBitmapFromEvaluator ( Rhino.Render.RenderEnvironment rm, CyclesTextureImage teximg, float gamma, bool floatAsByte, bool planarProjection ) : void
rm Rhino.Render.RenderEnvironment
teximg CyclesTextureImage
gamma float
floatAsByte bool
planarProjection bool
return void

ReadByteBitmapFromBitmap() public static method

public static ReadByteBitmapFromBitmap ( uint id, int pwidth, int pheight, Bitmap bm ) : ByteBitmap
id uint
pwidth int
pheight int
bm System.Drawing.Bitmap
return ByteBitmap