RLE (.rle)

Background

    • Raster image format.
    • A very simple lossless data compression.
    • Compresses image data using run-length encoding.
    • Efficient in compressing black-and-white images.
    • Plain text format.
    • Superseded by other raster formats such as GIF.

Import & Export

  • Import["file.rle"] imports an RLE file, returning an Image object.
  • Import["file.rle",elem] imports the specified element from an RLE file.
  • The import format can be specified with Import["file","RLE"] or Import["file",{"RLE",elem,}].
  • See the reference pages for full general information on Import and Export.
  • ImportString supports the RLE format.

Import Elements

  • General Import elements:
  • "Elements" list of elements and options available in this file
    "Rules"full list of rules for each element and option
    "Options"list of rules for options, properties and settings
  • Initial state data representation elements:
  • "Data"an array of data values for the initial state
    "Graphics"a Graphics object
    "Image"an Image object
  • Metadata elements:
  • "Comments"comments stored in the file
    "ImageSize"size of the imported raster

Examples

open all close all

Basic Examples  (1)

Import an RLE image:

In[1]:=
Click for copyable input
Out[1]=

Scope  (1)

Import Elements  (7)

Introduced in 2018
(11.3)
|
Updated in 2019
(12.0)