layeredimage/io/common.py
def blendModeLookup(
	blendmode: Any, blendLookup: dict[Any, Any], default: Any = BlendType.NORMAL
) -> BlendType:
	"""Get the blendmode from a lookup table."""
	if blendmode not in blendLookup:
		Logger(FHFormatter()).logPrint(
			str(blendmode) + " is not currently supported!", LogType.WARNING
		)
		return default
	return blendLookup[blendmode]
Get the blendmode from a lookup table.
Get the blendmode from a lookup table.
Get the blendmode from a lookup table .
def blendModeLookup(
	blendmode: Any, blendLookup: dict[Any, Any], default: Any = BlendType.NORMAL
) -> BlendType:
	if blendmode not in blendLookup:
		Logger(FHFormatter()).logPrint(
			str(blendmode) + " is not currently supported!", LogType.WARNING
		)
		return default
	return blendLookup[blendmode]
def blendModeLookup ( blendmode : Any , blendLookup : dict [ Any , Any ] , default : Any = BlendType . NORMAL ) -> BlendType : if blendmode not in blendLookup : Logger ( FHFormatter ( ) ) . logPrint ( str ( blendmode ) + " is not currently supported!" , LogType . WARNING ) return default return blendLookup [ blendmode ]
Get the blendmode from a lookup table.
Get the blendmode from a lookup table .
"""Get the blendmode from a lookup table."""
blendmode
Any
blendLookup
dict[Any, Any]
default
Any