C# 클래스 Imager.cRGBCache

A little cache that holds calculation results based on the three color components red, green and blue.
파일 보기 프로젝트 열기: soywiz/cspspemu

공개 메소드들

메소드 설명
GetOrAdd ( UInt32 key, byte>.Func factory ) : byte

Gets a value directly from the cache or first calculates that value and writes it the cache.

메소드 상세

GetOrAdd() 공개 메소드

Gets a value directly from the cache or first calculates that value and writes it the cache.
public GetOrAdd ( UInt32 key, byte>.Func factory ) : byte
key System.UInt32 The 32-bit color code.
factory byte>.Func The factory that would calculate a result if it's not already in the cache.
리턴 byte