Platforms to show: All Mac Windows Linux Cross-Platform

Back to Picture class.

Picture.SetSteganographyMBS(flags as Integer, data as Memoryblock) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Graphics & Pictures MBS Picture Plugin 14.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Adds steganography to an existing picture.
Example
dim p as Picture = LogoMBS(500)

// this example uses chr(0) as end marker
dim s as string = "Hello World. This is just a test." + chr(0)
if p.SetSteganographyMBS(1, s) then

dim data as MemoryBlock = p.SteganographyMBS(1)
dim d as string = data.CString(0)

Backdrop = p
Break
end if

Flags can be a combination of red (&h100), green (&h010) and blue (&h001).
Returns true on success or false on failure.
If memoryblock provided is nil, this function fails.

If you like to store data, please encrypt them and include some way that you find your data again, detect length of data, verify it's okay via checksum and than decrypt your data.
Please store image in a loss less format like PNG.
Function does not handle mask or alpha channel.

The items on this page are in the following plugins: MBS Picture Plugin.


The biggest plugin in space...