C# Class RhinoCyclesCore.Converters.BitmapConverter

Afficher le fichier Open project: mcneel/RhinoCycles

Méthodes publiques

Méthode 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

Méthode 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 méthode

public static ApplyGammaToTextures ( float gamma ) : void
gamma float
Résultat void

EnvironmentBitmapFromEvaluator() public static méthode

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
Résultat void

ReadByteBitmapFromBitmap() public static méthode

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