ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Merge 2 bitmaps to encrypt / decrypt

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
LikeMike Posted - Apr 27 2023 : 12:47:26
Hello!
Is there a way to merge a mask (watermark) to a picture and later load the picture and decrypt it with the mask into the original state?
The reason is, that the picture should be useless for someone who opens the picture file directly but in my application the picture should be displayed in original state.

Thanks in advance
Mike
5   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - May 02 2023 : 16:31:12
OK, well then you could do it. You would have a second image that modifies the image in a predictable way, and then when you merge you would use the second image to remove the effect. There is not a method to do this in ImageEn (assuming you avoid anything really easy to override, such as transparency), so you would do it by iterating over the image scanlines (the second image determines the effect to apply to each pixel, such as changing one or more of the color values.

Nigel
Xequte Software
www.imageen.com
LikeMike Posted - May 02 2023 : 12:03:18
Yes, but in my example the other person doesn't have the watermark file.
xequte Posted - May 01 2023 : 19:13:05
Hi Mike

If you have added a watermark into an image and saved the image, then there is not a process to unmerge it.

If you added the watermark in a standard way, such as outputting a line of text at 50% opacity, then you could reverse that effect, e.g. by removing the opacity in this case. But any type of process that you can reverse, another person could reverse too.

Essentially anything that can be displayed onscreen can be taken.

Nigel
Xequte Software
www.imageen.com
LikeMike Posted - May 01 2023 : 08:34:58
Hello Nigel!
I want to encrypt files, so that they can't be copied. The ImageEnView encrypt and decrypt-function works good, but I want, that the user can see the picture when he opens it directly from the image file (opening encrypted files shows only murmur of pixels). So I thought, that the best way to do this, is to merge the file with a watermark file. But in my software I need the picture without watermark. So maybe the right question would be: how can I unmerge a merged file?

Regards
Mike
xequte Posted - Apr 30 2023 : 22:19:01
Hi Mike

Sorry, I might be misunderstanding your requirements here, but if you have a IEN or PSD format image with multiple layers, you can encrypt/decrypt all of its layers on save/load. Is that you mean?



Nigel
Xequte Software
www.imageen.com