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:
java.lang.AutoCloseable
public class CGBitmapContext extends CGContext
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
CGBitmapContext.ReleaseDataCallback
-
Nested classes/interfaces inherited from class org.robovm.apple.coregraphics.CGContext
CGContext.CGContextPtr
-
Nested 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
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static CGBitmapContext
create(byte[] data, long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGBitmapInfo bitmapInfo)
static CGBitmapContext
create(byte[] data, long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGBitmapInfo bitmapInfo, CGBitmapContext.ReleaseDataCallback releaseCallback)
static CGBitmapContext
create(byte[] data, long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGImageAlphaInfo alphaInfo)
static CGBitmapContext
create(int[] data, long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGBitmapInfo bitmapInfo)
static CGBitmapContext
create(int[] data, long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGBitmapInfo bitmapInfo, CGBitmapContext.ReleaseDataCallback releaseCallback)
static CGBitmapContext
create(long data, long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGBitmapInfo bitmapInfo)
static CGBitmapContext
create(long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGBitmapInfo bitmapInfo)
static CGBitmapContext
create(long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGBitmapInfo bitmapInfo, CGBitmapContext.ReleaseDataCallback releaseCallback)
static CGBitmapContext
create(long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGImageAlphaInfo alphaInfo)
static CGBitmapContext
create(short[] data, long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGBitmapInfo bitmapInfo)
static CGBitmapContext
create(short[] data, long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGBitmapInfo bitmapInfo, CGBitmapContext.ReleaseDataCallback releaseCallback)
static CGBitmapContext
create(org.robovm.rt.bro.ptr.IntPtr data, long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGBitmapInfo bitmapInfo)
Deprecated.kept for compatibility only, use ones that accept arraysstatic CGBitmapContext
create(org.robovm.rt.bro.ptr.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 void
dispose(boolean finalizing)
CGImageAlphaInfo
getAlphaInfo()
CGBitmapInfo
getBitmapInfo()
long
getBitsPerComponent()
long
getBitsPerPixel()
long
getBytesPerRow()
CGColorSpace
getColorSpace()
long
getData()
long
getHeight()
long
getWidth()
CGImage
toImage()
-
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, translateCTM
-
Methods 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
-
-
-
-
Method Detail
-
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(org.robovm.rt.bro.ptr.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(org.robovm.rt.bro.ptr.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.
-
create
public static CGBitmapContext create(long data, long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpace space, CGBitmapInfo bitmapInfo)
- Since:
- Available in iOS 2.0 and later.
-
getData
public long getData()
- Since:
- Available in iOS 2.0 and later.
-
getWidth
public long getWidth()
- Since:
- Available in iOS 2.0 and later.
-
getHeight
public long getHeight()
- Since:
- Available in iOS 2.0 and later.
-
getBitsPerComponent
public long getBitsPerComponent()
- Since:
- Available in iOS 2.0 and later.
-
getBitsPerPixel
public long getBitsPerPixel()
- Since:
- Available in iOS 2.0 and later.
-
getBytesPerRow
public long getBytesPerRow()
- Since:
- Available in iOS 2.0 and later.
-
getColorSpace
public CGColorSpace getColorSpace()
- Since:
- Available in iOS 2.0 and later.
-
getAlphaInfo
public CGImageAlphaInfo getAlphaInfo()
- Since:
- Available in iOS 2.0 and later.
-
getBitmapInfo
public CGBitmapInfo getBitmapInfo()
- Since:
- Available in iOS 2.0 and later.
-
toImage
public CGImage toImage()
- Since:
- Available in iOS 2.0 and later.
-
-