StorageMode Property

Describes how data is stored in a Bitmap object. This property is applied to the Bitmap object when picture it is saved (or switches between configuration and run mode).

IMPORTANT: JPEG storage mode uses the lossy image compression algorithm that results in a little degradation of the image data.
After JPEG storage mode is applied to a Bitmap control and picture is saved and closed, the original bitmap data cannot be reverted back.

Syntax

object.StorageMode[= enumBitmapStorageMode]

Properties

The StorageMode property syntax has this part:

Part

Description

object

An object expression that evaluates to an object in the Applies To list.

enumBitmapStorageMode

An enumeration that describes how the bitmap object is rendered. Valid values include:

  • PNG (0) – This mode is typically used to store a Bitmap object as raw data that gets compressed with the lossless algorithm (PNG). It can persist the quality of the image. When the Transparency option is about to be used for masking a specific color in a Bitmap object, this option must be selected as the StorageMode. The PNG (0) option is the default for pictures created prior to iFIX 2022.
  • JPEG (2) – This mode is used to save the Bitmap object with the lossy image compression algorithm (JPEG). A little perceptible loss in image quality is possible when the Bitmap ojbect is saved with JPEG compression. This storage mode is preferred to store large sized Bitmap objects that having real image, natural scene, vivid image, or photograph settings. This mode of storage is not recommended for a Bitmap object where color masking (Transparency) is required.

Remarks

StorageMode is a read-only property of type Integer.

 

Applies To