ImageEn, unit imageenproc

TImageEnProc.WriteHiddenText

TImageEnProc.WriteHiddenText


Declaration

function WriteHiddenText(const text: AnsiString): Integer;


Description

WriteHiddenText and WriteHiddenData write hidden text or raw data within a true color image. Hidden information is stored inside the image (uses a pixel color modulation) and is independent of the image file format.
Use WriteHiddenText to write a simple string or WriteHiddenData to write a block of bytes (e.g. to embed a hidden image or sound).
Result is the number of bytes written.

Note: The hidden text will be lost if you save the image as Jpeg or if you subsample the colors.


Example

// Hide "Copyright by XYZ" in 'alfa.tif'
ImageEnView1.Proc.WriteHiddenText('Copyright by XYZ');
ImageEnView1.IO.SaveToFile('D:\alfa.tif');

// Read simple string from 'alfa.tif'
ImageEnView1.IO.LoadFromFile('D:\alfa.tif');
mystring := ImageEnView1.Proc.ReadHiddenText;


Demo

Demo  Demos\ImageEditing\CompleteEditor\PhotoEn.dpr


See Also

Public Method  ClearHiddenText
Public Method  GetHiddenDataSpace
Public Method  ReadHiddenData
Public Method  ReadHiddenText
Public Method  WriteHiddenData