GPKGMediaRow
Objective-C
@interface GPKGMediaRow : GPKGUserCustomRow
Swift
class GPKGMediaRow : GPKGUserCustomRow
User Media Row containing the values from a single result set row
-
Initialize
Declaration
Objective-C
- (instancetype)initWithMediaTable:(GPKGMediaTable *)table andColumns:(GPKGUserColumns *)columns andValues:(NSMutableArray *)values;Swift
init!(mediaTable table: GPKGMediaTable!, andColumns columns: GPKGUserColumns!, andValues values: NSMutableArray!)Parameters
tablemedia table
columnscolumns
valuesvalues
Return Value
new media row
-
Initialize
Declaration
Objective-C
- (instancetype)initWithMediaTable:(GPKGMediaTable *)table;Swift
init!(mediaTable table: GPKGMediaTable!)Parameters
tablemedia table
Return Value
new media row
-
Get the media table
Return Value
media table
-
Get the data column index
Declaration
Objective-C
- (int)dataColumnIndex;Swift
func dataColumnIndex() -> Int32Return Value
data column index
-
Get the data column
Declaration
Objective-C
- (GPKGUserCustomColumn *)dataColumn;Swift
func dataColumn() -> GPKGUserCustomColumn!Return Value
data column
-
Get the data
Declaration
Objective-C
- (NSData *)data;Swift
func data() -> Data!Return Value
data
-
Set the data
Declaration
Objective-C
- (void)setData:(NSData *)data;Swift
func setData(_ data: Data!)Parameters
datadata
-
Get the properties that apply to the data image source
See: https://developer.apple.com/documentation/imageio/cgimageproperties/individual_image_properties kCGImagePropertyPixelWidth, kCGImagePropertyPixelHeight, etc
Declaration
Objective-C
- (NSDictionary *)dataImageSourceProperties;Swift
func dataImageSourceProperties() -> [AnyHashable : Any]!Return Value
Image Source Container Properties
-
Get the data image
Declaration
Objective-C
- (id)dataImage;Swift
func dataImage() -> Any!Return Value
data image
-
Get the data as a scaled image
Declaration
Objective-C
- (id)dataImageWithScale:(CGFloat)scale;Swift
func dataImage(withScale scale: CGFloat) -> Any!Parameters
scalescale, 0.0 to 1.0
Return Value
data image
-
Set the data from a full quality image
Declaration
Objective-C
- (void)setDataWithImage:(id)image andFormat:(enum GPKGCompressFormat)format;Swift
func setDataWithImage(_ image: Any!, andFormat format: GPKGCompressFormat)Parameters
imageimage
formatimage format
-
Set the data from an image
Declaration
Objective-C
- (void)setDataWithImage:(id)image andFormat:(enum GPKGCompressFormat)format andQuality:(CGFloat)quality;Swift
func setDataWithImage(_ image: Any!, andFormat format: GPKGCompressFormat, andQuality quality: CGFloat)Parameters
imageimage
formatimage format
qualitycompression quality, 0.0 to 1.0, used only for GPKG_CF_JPEG
-
Get the content type column index
Declaration
Objective-C
- (int)contentTypeColumnIndex;Swift
func contentTypeColumnIndex() -> Int32Return Value
content type column index
-
Get the content type column
Declaration
Objective-C
- (GPKGUserCustomColumn *)contentTypeColumn;Swift
func contentTypeColumn() -> GPKGUserCustomColumn!Return Value
content type column
-
Get the content type
Declaration
Objective-C
- (NSString *)contentType;Swift
func contentType() -> String!Return Value
content type
-
Set the content type
Declaration
Objective-C
- (void)setContentType:(NSString *)contentType;Swift
func setContentType(_ contentType: String!)Parameters
contentTypecontent type
View on GitHub
GPKGMediaRow Class Reference