Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Coded Images
#3
(02-23-2024, 05:31 PM)a740g Wrote: Nice. I'll try this when I get off work.

So, this is like a watermark in the image? From a quick glance at the code, it seems it is getting the info from the alpha channel.
Yes, you could use it to watermark an image. The alpha channel of each pixel is slightly altered to hold the string data. A pixel's alpha value of 255 equates to a 1 and a value of 254 equates to a 0. To the naked eye the slight change is imperceptible.

It's best to use images, such as photographs, that are opaque (all alpha values are 255). You wouldn't want to use these routines on images where the alpha channel is important, such as sprites or sprite sheets that contain transparency, unless the code you write to use these routines takes this into account.
New to QB64pe? Visit the QB64 tutorial to get started.
QB64 Tutorial
Reply


Messages In This Thread
Coded Images - by TerryRitchie - 02-23-2024, 05:25 PM
RE: Coded Images - by a740g - 02-23-2024, 05:31 PM
RE: Coded Images - by TerryRitchie - 02-23-2024, 05:44 PM
RE: Coded Images - by SMcNeill - 02-23-2024, 06:40 PM
RE: Coded Images - by SMcNeill - 02-23-2024, 07:50 PM
RE: Coded Images - by Dimster - 02-23-2024, 07:56 PM
RE: Coded Images - by SMcNeill - 02-23-2024, 07:58 PM
RE: Coded Images - by Dimster - 02-23-2024, 09:15 PM
RE: Coded Images - by NakedApe - 02-24-2024, 12:37 AM
RE: Coded Images - by Dimster - 02-24-2024, 01:56 PM
RE: Coded Images - by Pete - 02-25-2024, 07:25 AM
RE: Coded Images - by OldMoses - 02-27-2024, 02:47 AM
RE: Coded Images - by a740g - 02-27-2024, 03:10 AM
RE: Coded Images - by TerryRitchie - 02-27-2024, 03:13 AM
RE: Coded Images - by Pete - 02-28-2024, 09:07 PM



Users browsing this thread: 1 Guest(s)