Platforms to show: All Mac Windows Linux Cross-Platform

Back to Picture class.

Picture.AddSteganographyMBS(flags as Integer, data as Memoryblock) as Picture

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 a new 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)
dim pic as Picture = p.AddSteganographyMBS(1, s)

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

MsgBox d

Flags can be a combination of red (&h100), green (&h010) and blue (&h001).
Returns a new picture or nil. The existing picture is not modified.

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...