MvimgIO class
A class that extends Mvimg and adds methods to write the image, video, and xap to files.
Constructors
- MvimgIO(BufferInput input)
- A constructor that takes a BufferInput and initializes the Mvimg instance.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- input → BufferInput
-
The input buffer.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- videoEndOffset → int
-
Returns the offset of the end of the video in the file.
no setterinherited
- videoStartOffset → int
-
Returns the offset of the start of the video in the file.
no setterinherited
- xapEndOffset → int
-
Returns the offset of the end of the xap in the file.
no setterinherited
- xapStartOffset → int
-
Returns the offset of the start of the xap in the file.
no setterinherited
Methods
-
decode(
) → void -
Decodes the mvimg file.
inherited
-
dispose(
) → void -
Closes the input buffer.
inherited
-
getImageBytes(
) → List< int> -
Returns the bytes of the jpeg image in the file.
inherited
-
getVideoBytes(
) → List< int> -
Returns the bytes of the mp4 video in the file.
inherited
-
getXapBytes(
) → List< int> -
Returns the bytes of the xap in the file.
inherited
-
isMvimg(
) → bool -
Returns true if the file is a mvimg or motion photo file.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
writeImageToFile(
String path) → File - Writes the image bytes to a file at the given path. Returns a File object representing the written file. Throws an IOException if the file cannot be written.
-
writeVideoToFile(
String path) → File - Writes the video bytes to a file at the given path. Returns a File object representing the written file. Throws an IOException if the file cannot be written.
-
writeXapToFile(
String path) → File - Writes the xap bytes to a file at the given path. Returns a File object representing the written file. Throws an IOException if the file cannot be written.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited