Core Plot (iOS and tvOS)
Cocoa plotting framework for macOS, iOS, and tvOS
CPTImage(CPTPlatformSpecificImageExtensions) Category Reference

Platform-specific extensions to CPTImage. More...

#import <CPTImage.h>

Public Instance Methods

Initialization
(nonnull instancetype) - initWithNativeImage:
 Initializes a CPTImage instance with the provided platform-native image. More...
 
(nonnull instancetype) - initForPNGFile:
 Initializes a CPTImage instance with the contents of a PNG file. More...
 

Detailed Description

Platform-specific extensions to CPTImage.

Method Documentation

◆ initForPNGFile:

- (nonnull instancetype) initForPNGFile: (nonnull NSString *)  path

Initializes a CPTImage instance with the contents of a PNG file.

On systems that support hi-dpi or “Retina” displays, this method will look for a double-resolution image with the given name followed by “@2x”. If the “@2x” image is not available, the named image file will be loaded.

Parameters
pathThe file system path of the file.
Returns
A CPTImage instance initialized with the contents of the PNG file.

Extends class CPTImage.

◆ initWithNativeImage:

- (nonnull instancetype) initWithNativeImage: (nullable CPTNativeImage *)  anImage

Initializes a CPTImage instance with the provided platform-native image.

Parameters
anImageThe platform-native image.
Returns
A CPTImage instance initialized with the provided image.

Extends class CPTImage.


The documentation for this category was generated from the following files: