本文整理汇总了Python中Images.doColorRampSubImage方法的典型用法代码示例。如果您正苦于以下问题:Python Images.doColorRampSubImage方法的具体用法?Python Images.doColorRampSubImage怎么用?Python Images.doColorRampSubImage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Images
的用法示例。
在下文中一共展示了Images.doColorRampSubImage方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: DispatchDrawing
# 需要导入模块: import Images [as 别名]
# 或者: from Images import doColorRampSubImage [as 别名]
def DispatchDrawing(context, drawingType):
""" Drawing dispatcher """
if drawingType == UIHandling.kHICommandSimpleRect:
DrawingBasics.doSimpleRect(context)
elif drawingType == UIHandling.kHICommandStrokedRect:
DrawingBasics.doStrokedRect(context)
elif drawingType == UIHandling.kHICommandStrokedAndFilledRect:
DrawingBasics.doStrokedAndFilledRect(context)
elif drawingType == UIHandling.kHICommandPathRects:
DrawingBasics.doPathRects(context)
elif drawingType == UIHandling.kHICommandAlphaRects:
DrawingBasics.doAlphaRects(context)
elif drawingType == UIHandling.kHICommandDashed:
DrawingBasics.doDashedLines(context)
elif drawingType == UIHandling.kHICommandSimpleClip:
DrawingBasics.doClippedCircle(context)
elif drawingType == UIHandling.kHICommandPDFDoc:
callPDFDrawProc(context, DrawingBasics.doPDFDocument, kCatPDF)
elif drawingType == UIHandling.kHICommandRotatedEllipses:
CoordinateSystem.doRotatedEllipses(context)
elif drawingType == UIHandling.kHICommandDrawSkewCoordinates:
CoordinateSystem.drawSkewedCoordinateSystem(context)
elif drawingType == UIHandling.kHICommandBezierEgg:
PathDrawing.doEgg(context)
elif drawingType == UIHandling.kHICommandRoundedRects:
PathDrawing.doRoundedRects(context)
elif drawingType == UIHandling.kHICommandStrokeWithCTM:
PathDrawing.doStrokeWithCTM(context)
elif drawingType == UIHandling.kHICommandRotatedEllipsesWithCGPath:
PathDrawing.doRotatedEllipsesWithCGPath(context)
elif drawingType == UIHandling.kHICommandPixelAligned:
PathDrawing.doPixelAlignedFillAndStroke(context)
elif drawingType == UIHandling.kHICommandDeviceFillAndStrokeColor:
ColorAndGState.doColorSpaceFillAndStroke(context)
elif drawingType == UIHandling.kHICommandCLUTDrawGraphics:
ColorAndGState.doIndexedColorDrawGraphics(context)
elif drawingType == UIHandling.kHICommandDrawWithGlobalAlpha:
ColorAndGState.drawWithGlobalAlpha(context)
elif drawingType == UIHandling.kHICommandDrawWithBlendMode:
callPDFDrawProc(context, ColorAndGState.drawWithColorBlendMode, kPDFForBlendMode)
elif drawingType == UIHandling.kHICommandDrawWithColorRefs:
ColorAndGState.drawWithColorRefs(context)
elif drawingType == UIHandling.kHICommandFunctionsHaveOwnGSave:
ColorAndGState.doClippedEllipse(context)
elif drawingType == UIHandling.kHICommandDrawJPEGImage:
doDrawJPEGFile(context)
elif drawingType == UIHandling.kHICommandColorImageFromFile:
doRawImageFileWithURL(context)
elif drawingType == UIHandling.kHICommandColorImageFromData:
Images.doColorRampImage(context)
elif drawingType == UIHandling.kHICommandColorImageFromCallbacks:
doRawImageFileWithCallbacks(context)
elif drawingType == UIHandling.kHICommandGrayRamp:
Images.doGrayRamp(context)
elif drawingType == UIHandling.kHICommandDrawWithCGImageSource:
doDrawImageWithCGImageSource(context)
elif drawingType == UIHandling.kHICommandDrawWithCGImageSourceIncremental:
doIncrementalImage(context)
elif drawingType == UIHandling.kHICommandDrawWithQuickTime:
doQTImage(context)
elif drawingType == UIHandling.kHICommandSubstituteImageProfile:
doJPEGDocumentWithMultipleProfiles(context)
elif drawingType == UIHandling.kHICommandDoSubImage:
Images.doColorRampSubImage(context)
elif drawingType == UIHandling.kHICommandExportWithQuickTime:
Images.exportColorRampImageWithQT(context)
elif drawingType == UIHandling.kHICommandMaskTurkeyImage:
ImageMasking.doOneBitMaskImages(context)
#.........这里部分代码省略.........