ImageEn, unit imageenproc |
|
TImageEnProc.ReadHiddenText
Declaration
function ReadHiddenText(): AnsiString;
Description
ReadHiddenText and
ReadHiddenData return the hidden text or raw data written with
WriteHiddenText or
WriteHiddenData. Hidden information is stored inside the image (uses a pixel color modulation) and is independent of the image file format.
Use
ReadHiddenText to read a simple string or
ReadHiddenData to read a buffer of raw data.
Note:
◼The hidden text will be lost if you save the image as Jpeg or if you subsample the colors
◼If the image
PixelFormat is not ie24RGB, it will be converted
| Demos\ImageEditing\CompleteEditor\PhotoEn.dpr |
// Hides "copyright by XYZ" in 'alfa.tif'
ImageEnView1.Proc.WriteHiddenText('Copyright by XYZ');
ImageEnView1.IO.SaveToFile('alfa.tif');
// Read simple string from 'alfa.tif'
ImageEnView1.IO.LoadFromFile('alfa.tif');
mystring := ImageEnView1.Proc.ReadHiddenText();
See Also
◼ClearHiddenText◼GetHiddenDataSpace◼ReadHiddenData◼WriteHiddenData◼WriteHiddenText