RLE (.rle)

Background

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

Import and Export

  • Import["file.rle",elem] 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.

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
  • Data representation elements:
  • "Data"pixel indices, given as an integer array
    "Graphics"Graphics object representing an image
    "Image"raster image, given as an Image object
  • Metadata elements include:
  • "Comments"comments stored in the file
    "ImageSize"size of the imported raster

Examples

open allclose all

Basic Examples  (1)

Import an RLE image:

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

Scope  (1)

Import Elements  (7)

See Also

"BMP"  "GIF"  "PCX"  "TIFF"  "FITS"  "PNG"  "RawBitmap"

Tutorials

Introduced in 2018
(11.3)