Methods, Media-related


procedure ImageScaleInc;
procedure ImageScaleDec;
Increases or decreases current ImageScale value and sets MediaFit to False (when IsImage = True).
The nearest value to the current ImageScale value is set. The following row of predefined scale values is used: 7, 10, 20, 30... 100, 150... 1600.
function ImageEffect(AEffect: TATViewerImageEffect): Boolean;
Applies an image effect (when IsImage = True).
Possible effects:
  • vieNone: no effect, dummy value
  • vieRotate90: rotate image 90 grad clockwise
  • vieRotate270: rotate image 90 grad anti-clockwise
  • vieRotate180: rotate image 180 grad
  • vieGrayscale: convert image to grayscale
  • vieSepia: apply Sepia effect (brown colors palette)
  • vieNegative: convert image to negative colors
  • vieFlipVertical: flip image vertically
  • vieFlipHorizontal: flip image horizontally
Result is True when effect was successfully applied.
Note:
  • After applying of effect, icons (ICO) and metafiles (WMF, EMF) become "rasterized" and may loose transparency and quality.
procedure MediaDoPlayPause;
Starts or pauses media playback (when IsMedia = True).