FreBitmapDataSwift

public class FreBitmapDataSwift : NSObject

FreBitmapDataSwift: wrapper for FREBitmapData2.

  • raw FREObject value.

    Declaration

    Swift

    public var rawValue: FREObject?
  • A Int that specifies the width, in pixels, of the bitmap. This value corresponds to the width property of the ActionScript BitmapData class object. This field is read-only.

    Declaration

    Swift

    public var width: Int
  • A Int that specifies the height, in pixels, of the bitmap. This value corresponds to the height property of the ActionScript BitmapData class object. This field is read-only.

    Declaration

    Swift

    public var height: Int
  • A Bool that indicates whether the bitmap supports per-pixel transparency. This value corresponds to the transparent property of the ActionScript BitmapData class object. If the value is non-zero, then the pixel format is ARGB32. If the value is zero, the pixel format is _RGB32. Whether the value is big endian or little endian depends on the host device. This field is read-only.

    Declaration

    Swift

    public var hasAlpha: Bool
  • A uint32_t that indicates whether the bitmap pixels are stored as premultiplied color values. A true value means the values are premultipled. This field is read-only.

    Declaration

    Swift

    public var isPremultiplied: Bool
  • A Bool that indicates the order in which the rows of bitmap data in the image are stored. A non-zero value means that the bottom row of the image appears first in the image data (in other words, the first value in the bits32 array is the first pixel of the last row in the image). A zero value means that the top row of the image appears first in the image data. This field is read-only.

    Declaration

    Swift

    public var isInvertedY: Bool
  • A UInt that specifies the number of UInt values per scanline. This value is typically the same as the width parameter. This field is read-only.

    Declaration

    Swift

    public var lineStride32: UInt
  • A pointer to a UInt32. This value is an array of UInt32 values. Each value is one pixel of the bitmap.

    Declaration

    Swift

    public var bits32: UnsafeMutablePointer<UInt32>!
  • init: inits with a FREObject

    Declaration

    Swift

    public init(freObject: FREObject)

    Parameters

    freObject

    FREObject of AS3 type BitmapData

  • init: inits with a CGImage

    Declaration

    Swift

    public init(cgImage: CGImage)

    Parameters

    cgImage

    CGImage which will be converted into FREBitmapData2

  • See the original Adobe documentation

    Declaration

    Swift

    public func acquire()
  • See the original Adobe documentation

    Declaration

    Swift

    public func releaseData()
  • Handles conversion from a CGImage

    Declaration

    Swift

    public func setPixels(_ image: CGImage)
  • Handles conversion to a CGImage returns: CGImage?

    Declaration

    Swift

    public func asCGImage() -> CGImage?
  • See the original Adobe documentation

    Declaration

    Swift

    public func invalidateRect(x: UInt, y: UInt, width: UInt, height: UInt)