Package org.robovm.apple.coregraphics
Class CGBitmapContext
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.apple.corefoundation.CFType
org.robovm.apple.coregraphics.CGContext
org.robovm.apple.coregraphics.CGBitmapContext
- All Implemented Interfaces:
AutoCloseable
public class CGBitmapContext extends CGContext
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCGBitmapContext.ReleaseDataCallbackNested classes/interfaces inherited from class org.robovm.apple.coregraphics.CGContext
CGContext.CGContextPtrNested classes/interfaces inherited from class org.robovm.apple.corefoundation.CFType
CFType.AsListMarshaler, CFType.CFTypePtr, CFType.Marshaler, CFType.NoRetainMarshaler -
Constructor Summary
Constructors Constructor Description CGBitmapContext() -
Method Summary
Modifier and Type Method Description static CGBitmapContextcreate(byte[] data, long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGBitmapInfo bitmapInfo)static CGBitmapContextcreate(byte[] data, long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGBitmapInfo bitmapInfo, CGBitmapContext.ReleaseDataCallback releaseCallback)static CGBitmapContextcreate(byte[] data, long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGImageAlphaInfo alphaInfo)static CGBitmapContextcreate(int[] data, long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGBitmapInfo bitmapInfo)static CGBitmapContextcreate(int[] data, long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGBitmapInfo bitmapInfo, CGBitmapContext.ReleaseDataCallback releaseCallback)static CGBitmapContextcreate(long data, long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGBitmapInfo bitmapInfo)static CGBitmapContextcreate(long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGBitmapInfo bitmapInfo)static CGBitmapContextcreate(long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGBitmapInfo bitmapInfo, CGBitmapContext.ReleaseDataCallback releaseCallback)static CGBitmapContextcreate(long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGImageAlphaInfo alphaInfo)static CGBitmapContextcreate(short[] data, long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGBitmapInfo bitmapInfo)static CGBitmapContextcreate(short[] data, long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGBitmapInfo bitmapInfo, CGBitmapContext.ReleaseDataCallback releaseCallback)static CGBitmapContextcreate(IntPtr data, long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGBitmapInfo bitmapInfo)Deprecated.kept for compatibility only, use ones that accept arraysstatic CGBitmapContextcreate(IntPtr data, long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGBitmapInfo bitmapInfo, CGBitmapContext.ReleaseDataCallback releaseCallback)Deprecated.kept for compatibility only, use ones that accept arraysprotected voiddispose(boolean finalizing)CGImageAlphaInfogetAlphaInfo()CGBitmapInfogetBitmapInfo()longgetBitsPerComponent()longgetBitsPerPixel()longgetBytesPerRow()CGColorSpacegetColorSpace()longgetData()longgetHeight()longgetWidth()CGImagetoImage()Methods inherited from class org.robovm.apple.coregraphics.CGContext
addArc, addArcToPoint, addCurveToPoint, addEllipseInRect, addLines, addLineToPoint, addPath, addQuadCurveToPoint, addRect, addRects, beginPage, beginPath, beginTransparencyLayer, beginTransparencyLayer, clearRect, clip, clipToMask, clipToRect, clipToRects, closePath, concatCTM, convertPointToDeviceSpace, convertPointToUserSpace, convertRectToDeviceSpace, convertRectToUserSpace, convertSizeToDeviceSpace, convertSizeToUserSpace, drawImage, drawLayerAtPoint, drawLayerInRect, drawLinearGradient, drawPath, drawPDFPage, drawRadialGradient, drawShading, drawTiledImage, endPage, endTransparencyLayer, evenOddClip, evenOddFillPath, fillEllipseInRect, fillPath, fillRect, fillRects, flush, getClassTypeID, getClipBoundingBox, getCTM, getInterpolationQuality, getPath, getPathBoundingBox, getPathCurrentPoint, getTextMatrix, getTextPosition, getUserSpaceToDeviceSpaceTransform, isPathEmpty, moveToPoint, pathContainsPoint, replacePathWithStrokedPath, resetClip, restoreGState, rotateCTM, saveGState, scaleCTM, selectFont, setAllowsAntialiasing, setAllowsFontSmoothing, setAllowsFontSubpixelPositioning, setAllowsFontSubpixelQuantization, setAlpha, setBlendMode, setCharacterSpacing, setCMYKFillColor, setCMYKStrokeColor, setFillColor, setFillColor, setFillColor, setFillColorSpace, setFillPattern, setFillPattern, setFlatness, setFont, setFontSize, setGrayFillColor, setGrayStrokeColor, setInterpolationQuality, setLineCap, setLineDash, setLineDash, setLineJoin, setLineWidth, setMiterLimit, setPatternPhase, setRenderingIntent, setRGBFillColor, setRGBStrokeColor, setShadow, setShadow, setShouldAntialias, setShouldSmoothFonts, setShouldSubpixelPositionFonts, setShouldSubpixelQuantizeFonts, setStrokeColor, setStrokeColor, setStrokeColor, setStrokeColorSpace, setStrokePattern, setStrokePattern, setTextDrawingMode, setTextMatrix, setTextPosition, showGlyphs, showGlyphsAtPoint, showGlyphsAtPositions, showGlyphsWithAdvances, showText, showTextAtPoint, strokeEllipseInRect, strokeLineSegments, strokePath, strokeRect, strokeRect, synchronize, translateCTMMethods inherited from class org.robovm.apple.corefoundation.CFType
autorelease, close, dispose, doDispose, equalsTo, finalize, getAllocator, getDescription, getRetainCount, getTypeID, getTypeIDDescription, hash, makeCollectable, release, release, retain, retain, show, toString
-
Constructor Details
-
CGBitmapContext
public CGBitmapContext()
-
-
Method Details
-
create
public static CGBitmapContext create(long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGBitmapInfo bitmapInfo)- Since:
- Available in iOS 2.0 and later.
-
create
public static CGBitmapContext create(long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGImageAlphaInfo alphaInfo)- Since:
- Available in iOS 2.0 and later.
-
create
public static CGBitmapContext create(byte[] data, long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGImageAlphaInfo alphaInfo)- Since:
- Available in iOS 2.0 and later.
-
create
public static CGBitmapContext create(byte[] data, long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGBitmapInfo bitmapInfo)- Since:
- Available in iOS 2.0 and later.
-
create
public static CGBitmapContext create(short[] data, long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGBitmapInfo bitmapInfo)- Since:
- Available in iOS 2.0 and later.
-
create
public static CGBitmapContext create(int[] data, long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGBitmapInfo bitmapInfo)- Since:
- Available in iOS 2.0 and later.
-
create
@Deprecated public static CGBitmapContext create(IntPtr data, long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGBitmapInfo bitmapInfo)Deprecated.kept for compatibility only, use ones that accept arrays- Since:
- Available in iOS 4.0 and later.
-
create
public static CGBitmapContext create(long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGBitmapInfo bitmapInfo, CGBitmapContext.ReleaseDataCallback releaseCallback)- Since:
- Available in iOS 4.0 and later.
-
create
public static CGBitmapContext create(byte[] data, long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGBitmapInfo bitmapInfo, CGBitmapContext.ReleaseDataCallback releaseCallback)- Since:
- Available in iOS 4.0 and later.
-
create
public static CGBitmapContext create(short[] data, long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGBitmapInfo bitmapInfo, CGBitmapContext.ReleaseDataCallback releaseCallback)- Since:
- Available in iOS 4.0 and later.
-
create
public static CGBitmapContext create(int[] data, long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGBitmapInfo bitmapInfo, CGBitmapContext.ReleaseDataCallback releaseCallback)- Since:
- Available in iOS 4.0 and later.
-
create
@Deprecated public static CGBitmapContext create(IntPtr data, long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGBitmapInfo bitmapInfo, CGBitmapContext.ReleaseDataCallback releaseCallback)Deprecated.kept for compatibility only, use ones that accept arrays- Since:
- Available in iOS 4.0 and later.
-
dispose
protected void dispose(boolean finalizing) -
create
public static CGBitmapContext create(long data, long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGBitmapInfo bitmapInfo) -
getData
public long getData() -
getWidth
public long getWidth() -
getHeight
public long getHeight() -
getBitsPerComponent
public long getBitsPerComponent() -
getBitsPerPixel
public long getBitsPerPixel() -
getBytesPerRow
public long getBytesPerRow() -
getColorSpace
-
getAlphaInfo
-
getBitmapInfo
-
toImage
-