Inherits from DTTextAttachment : NSObject
Conforms to DTTextAttachmentDrawing
DTTextAttachmentHTMLPersistence
Declared in DTImageTextAttachment.h

Overview

A specialized subclass in the DTTextAttachment class cluster to represent an embedded image

Tasks

Other Methods

Alternate Representations

Properties

image

The image represented by the receiver

@property (nonatomic, strong) DTImage *image

Declared In

DTImageTextAttachment.h

Instance Methods

dataURLRepresentation

Retrieves a string which is in the format “data:image/png;base64,%@” with this DTTextAttachment’s content’s data representation encoded in Base64 string encoding. For image contents only.

- (NSString *)dataURLRepresentation

Return Value

A Base64 encoded string of the png data representation of this text attachment’s image contents.

Declared In

DTImageTextAttachment.h

initWithElement:options:

The designated initializer which will be called by [DTTextAttachment textAttachmentWithElement:options:] for image attachments.

- (id)initWithElement:(DTHTMLElement *)element options:(NSDictionary *)options

Parameters

element

A DTHTMLElement that must have a valid tag name and should have a size. Any element attributes are copied to the text attachment’s elements.

options

An NSDictionary of options. Used to specify the max image size with the key DTMaxImageSize.

Declared In

DTImageTextAttachment.h