如何在One Image中保存许多图像 [英] How do I Save many images in One Image

查看:170
本文介绍了如何在One Image中保存许多图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想做的是将3个图片框保存为jpg,但输出只是第一个图像。它就像其他图像被隐藏一样。当我的其他程序尝试打开我保存的文件时,必须显示隐藏的图像。我不知道我是否可以将其隐藏为隐藏或加密解密,但基本上我希望photoviewer只能看到1张图像,但我的程序可以看到其背后的其他图像。我希望有人可以给我一点想法。我试过使用cmd copy / b它是类似的,但图像不是来自图片框,我正在使用存档提取..



谢谢。 ....

What I wanna do is to save 3 picturebox as jpg but the output will only be the first image.jpg it's like others images are hidden. When my other program tries to open the file that I saved the images that are hidden must be shown. I don't know if I can call it hide unhide or encrypt decrypt but basically I want photoviewer to see only 1 image but my program can see other images behind it. I hope someone can give me Idea. I've tried to use cmd copy /b it's similar but the images doesn't come from picture box and I'm using archiver in extracting..

Thanks.....

推荐答案

如果我理解你,你想做什么叫隐写术 [ ^ ]



你在互联网上已经有成千上万的例子。在codeproject 隐写术 [ ^ ]



隐写术:简单在C#中实施 [ ^ ]



编辑



思考了一下它,我认为可能有另一种方法来完成类似于你想要的东西。

您可以使用所有图像创建动画GIF,而不是jpeg图像,然后在程序中显示第一个图像。但如果有人用另一个观众打开图像,他们就可以看到所有图像。
What you want to do if i understand you is called Steganography[^]

You've got literally thousands of examples in the internet. A simple search here in codeproject steganography[^]

Steganography: Simple Implementation in C#[^]

Edit

After thinking a bit about it, I think there may be another way to accomplish something similar to what you want.
Instead of a jpeg image, you could create an animated GIF with all your images, and then in your program just show the first one. But if someone opens the image with another viewer,they could see all the images.


我发表了一篇关于这个主题的文章。现在我认为它正是你所要求的。我希望你喜欢它:

隐藏数据图像文件
I've published an article about this subject. Now I think its just what you asked. I hope you like it:
Hiding data in an image file


从FrameWork 4.5开始,.NET具有.zip功能。 :[ ^ ]。



如果你可以使用copy / b技术,那么你可以使用它。但是,当然,任何有智能的人都可以强制使用WinRar或其他存档阅读器打开看似.jpg或.png的文件。



你可以调用.NET中的DOS copy-merge命令:这是一个例子:[ ^ ]。



CodeProject上有很多关于在.NET中使用zip,rar,7-zip的教程:只需搜索它们。



这是关于使用FrameWork 4.5的zip工具的2012年5月教程:[ ^ ]。
.NET has .zip functionality as of FrameWork 4.5. : [^].

If the copy /b technique is okay for you, then you could use that. But, of course, anyone with any smarts can force your file that appears to be .jpg or .png to open with WinRar or other archive readers.

You can invoke the DOS copy-merge command in .NET: here's an example: [^].

There are lots of tutorials here on CodeProject on using zip, rar, 7-zip, in .NET: just search for them.

Here's a May 2012 tutorial on using FrameWork 4.5's zip facilities: [^].


这篇关于如何在One Image中保存许多图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆