图片 [英] Images

查看:36
本文介绍了图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在保存图像方面遇到了一个奇怪的问题。我们在Palm Pilot上捕获客户签名

并将其保存为图表上的点。我们能够重建这些点以显示签名,但是当我们尝试将b
保存时,我们可以将其传递回给客户。奇数

结果。如果我们尝试使用Windows图片和传真查看器查看文件,

一切都没问题。但是尝试使用任何其他图形程序(例如,作为Paint或者甚至是Windows资源管理器中的缩略图)来查看它,我们只得到一个

黑盒子。我有另一个应用程序(JASC Image Commander)告诉我

文件不是有效的JPG或BMP文件(我们都试过)。这是

代码的示例。


SignatureManager是一个DLL,用于绘制点并重建

图片。正如我所说,它在表格上的图片框中显示得很好。


Dim SigMan As ASTSignature.SignatureManager

picSignature.SizeMode = PictureBoxSizeMode.StretchImage


Dim imgSignature As New System.Drawing.Bitmap(320,138,

Imaging.PixelFormat.Format32bppArgb)

imgSignature = CType (SigMan.GetSignature(CStr(iDSID)),

位图)


picSignature.Image = imgSignature

picSignature.ClientSize =新尺寸(208,72)

imgSignature.Save(sFileName)


有人有什么想法吗?

We are having an odd problem saving images. We capture customer signatures
on a Palm Pilot and save them as points on a graph. We are able to
reconstruct these points to display the signature, but when we attempt to
save the file off so that we can pass it back to our customers we get an odd
result. If we try to view the file using Windows Picture and Fax viewer,
everything''s ok. But try to view it using any other graphics program (such
as Paint or even as thumbnails in Windows Explorer) and we get nothing but a
black box. I have another app (JASC Image Commander) that tells me that the
file is not a valid JPG or BMP file (we tried both). Here''s a sample of the
code.

SignatureManager is a DLL that is used to plot the points and reconstruct
the image. As I said, it displays just fine in the Picture Box on the form.

Dim SigMan As ASTSignature.SignatureManager
picSignature.SizeMode = PictureBoxSizeMode.StretchImage

Dim imgSignature As New System.Drawing.Bitmap(320, 138,
Imaging.PixelFormat.Format32bppArgb)
imgSignature = CType(SigMan.GetSignature(CStr(iDSID)),
Bitmap)

picSignature.Image = imgSignature
picSignature.ClientSize = New Size(208, 72)

imgSignature.Save(sFileName)

Anyone have any thoughts?

推荐答案

您好,EdB,


保存时,您应指定要保存的格式

to ....


imgSignature.Save(sFileName,System.Drawing.Imaging.ImageFormat.jpeg)



imgSignature.Save(sFileName,System.Drawing.Imaging.ImageFormat.bmp)


然后看看你是否可以打开它。


HTH,

Barry


On Sun,2005年5月29日19:08:03 -0700 ,EdB

< Ed *@discussions.microsoft.com>写道:
Hi, EdB,

When you save, you should specify what format you are going to save
to....

imgSignature.Save(sFileName, System.Drawing.Imaging.ImageFormat.jpeg)
or
imgSignature.Save(sFileName, System.Drawing.Imaging.ImageFormat.bmp)

then see if you can open it.

HTH,
Barry

On Sun, 29 May 2005 19:08:03 -0700, EdB
<Ed*@discussions.microsoft.com> wrote:
我们在保存图像方面遇到了一个奇怪的问题。我们在Palm Pilot上捕获客户签名并将其保存为图表上的点。我们能够重建这些点以显示签名,但是当我们尝试将文件保存起来以便我们将其传递给客户时,我们得到了一个奇怪的结果。如果我们尝试使用Windows图片和传真查看器查看文件,
一切都没问题。但是尝试使用任何其他图形程序(例如Paint或者甚至是Windows资源管理器中的缩略图)来查看它,我们只得到一个黑盒子。我有另一个应用程序(JASC Image Commander)告诉我
文件不是有效的JPG或BMP文件(我们都试过)。这是
代码的示例。

SignatureManager是一个DLL,用于绘制点并重建图像。正如我所说,它在表格上的图片框中显示得很好。

Dim SigMan As ASTSignature.SignatureManager
picSignature.SizeMode = PictureBoxSizeMode.StretchImage

昏暗imgSignature As New System.Drawing.Bitmap(320,138,
imag.PixelFormat.Format32bppArgb)
imgSignature = CType(SigMan.GetSignature(CStr(iDSID)),
Bitmap)

picSignature.Image = imgSignature
picSignature.ClientSize =新尺寸(208,72)

imgSignature.Save(sFileName)

任何人都有想法?
We are having an odd problem saving images. We capture customer signatures
on a Palm Pilot and save them as points on a graph. We are able to
reconstruct these points to display the signature, but when we attempt to
save the file off so that we can pass it back to our customers we get an odd
result. If we try to view the file using Windows Picture and Fax viewer,
everything''s ok. But try to view it using any other graphics program (such
as Paint or even as thumbnails in Windows Explorer) and we get nothing but a
black box. I have another app (JASC Image Commander) that tells me that the
file is not a valid JPG or BMP file (we tried both). Here''s a sample of the
code.

SignatureManager is a DLL that is used to plot the points and reconstruct
the image. As I said, it displays just fine in the Picture Box on the form.

Dim SigMan As ASTSignature.SignatureManager
picSignature.SizeMode = PictureBoxSizeMode.StretchImage

Dim imgSignature As New System.Drawing.Bitmap(320, 138,
Imaging.PixelFormat.Format32bppArgb)
imgSignature = CType(SigMan.GetSignature(CStr(iDSID)),
Bitmap)

picSignature.Image = imgSignature
picSignature.ClientSize = New Size(208, 72)

imgSignature.Save(sFileName)

Anyone have any thoughts?




bceggersATcomcastDOTnet



bceggersATcomcastDOTnet


谢谢,但这没有什么区别。我已经把它放在那里,按照你的建议把它给了b $ b,这没有用。事实上,现在即使是Windows

图片和传真查看器也无法识别它。


Barry写道:
Thanks, but that did not make a difference. I had had that in there, put it
back as you suggested and it didn''t help. Infact, now even the Windows
Picture and Fax Viewer doesn''t recognize it.

"Barry" wrote:
EdB,

当你保存时,你应该指定你要保存的格式
.... brg>
imgSignature.Save(sFileName,System.Drawing.Imaging.ImageFormat.jpeg)

imgSignature.Save(sFileName,System.Drawing.Imaging.ImageFormat.bmp)
HTH,
Barry

2005年5月29日星期日19:08:03 -0700 ,EdB
< Ed*@discussions.microsoft.com>写道:
Hi, EdB,

When you save, you should specify what format you are going to save
to....

imgSignature.Save(sFileName, System.Drawing.Imaging.ImageFormat.jpeg)
or
imgSignature.Save(sFileName, System.Drawing.Imaging.ImageFormat.bmp)

then see if you can open it.

HTH,
Barry

On Sun, 29 May 2005 19:08:03 -0700, EdB
<Ed*@discussions.microsoft.com> wrote:
我们在保存图像方面遇到了一个奇怪的问题。我们在Palm Pilot上捕获客户签名并将其保存为图表上的点。我们能够重建这些点以显示签名,但是当我们尝试将文件保存起来以便我们将其传递给客户时,我们得到了一个奇怪的结果。如果我们尝试使用Windows图片和传真查看器查看文件,
一切都没问题。但是尝试使用任何其他图形程序(例如Paint或者甚至是Windows资源管理器中的缩略图)来查看它,我们只得到一个黑盒子。我有另一个应用程序(JASC Image Commander)告诉我
文件不是有效的JPG或BMP文件(我们都试过)。这是
代码的示例。

SignatureManager是一个DLL,用于绘制点并重建图像。正如我所说,它在表格上的图片框中显示得很好。

Dim SigMan As ASTSignature.SignatureManager
picSignature.SizeMode = PictureBoxSizeMode.StretchImage

昏暗imgSignature As New System.Drawing.Bitmap(320,138,
imag.PixelFormat.Format32bppArgb)
imgSignature = CType(SigMan.GetSignature(CStr(iDSID)),
Bitmap)

picSignature.Image = imgSignature
picSignature.ClientSize =新尺寸(208,72)

imgSignature.Save(sFileName)

任何人都有想法?
We are having an odd problem saving images. We capture customer signatures
on a Palm Pilot and save them as points on a graph. We are able to
reconstruct these points to display the signature, but when we attempt to
save the file off so that we can pass it back to our customers we get an odd
result. If we try to view the file using Windows Picture and Fax viewer,
everything''s ok. But try to view it using any other graphics program (such
as Paint or even as thumbnails in Windows Explorer) and we get nothing but a
black box. I have another app (JASC Image Commander) that tells me that the
file is not a valid JPG or BMP file (we tried both). Here''s a sample of the
code.

SignatureManager is a DLL that is used to plot the points and reconstruct
the image. As I said, it displays just fine in the Picture Box on the form.

Dim SigMan As ASTSignature.SignatureManager
picSignature.SizeMode = PictureBoxSizeMode.StretchImage

Dim imgSignature As New System.Drawing.Bitmap(320, 138,
Imaging.PixelFormat.Format32bppArgb)
imgSignature = CType(SigMan.GetSignature(CStr(iDSID)),
Bitmap)

picSignature.Image = imgSignature
picSignature.ClientSize = New Size(208, 72)

imgSignature.Save(sFileName)

Anyone have any thoughts?



bceggersATcomcastDOTnet



bceggersATcomcastDOTnet



EdB,


我会看看编码类,在MSDN上关于它的每一个样本几乎都是在C#中的b#,我的意见并不像我想的那样清楚。可以说我对计算机上的图形一无所知。

http://msdn.microsoft.com/library/de...classtopic.asp


否则也许这些页面

Http://www.bobpowell.net/

Cor
EdB,

I would look in the encoding class, every sample about it on MSDN is almost
in C# in my opininon is not that clear as I would like it. Can be that I
know nothing or less about graphics on a computer.

http://msdn.microsoft.com/library/de...classtopic.asp

Otherwise maybe these pages

Http://www.bobpowell.net/
Cor


这篇关于图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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