DTImageTextAttachment Class Reference
| 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
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 *)dataURLRepresentationReturn Value
A Base64 encoded string of the png data representation of this text attachment’s image contents.
Declared In
DTImageTextAttachment.hinitWithElement:options:
The designated initializer which will be called by [DTTextAttachment textAttachmentWithElement:options:] for image attachments.
- (id)initWithElement:(DTHTMLElement *)element options:(NSDictionary *)optionsParameters
- 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