savepicture(picture1.image,"c:\pic.bmp")

savepicture(picture1.image,"c:\pic.jpg")
有什么不同?

解决方案 »

  1.   

    If a graphic was loaded from a file to the Picture property of an object, either at design time or at run time, and it’s a bitmap, icon, metafile, or enhanced metafile, it's saved using the same format as the original file. If it is a GIF or JPEG file, it is saved as a bitmap file.Graphics in an Image property are always saved as bitmap (.bmp) files regardless of their original format.翻译 过来是: 如果图片是在设计时或运行从文件加载到一个对象的picture属性,并且文件的类型是bmp,icon,metafile或者是继承自metafile的,它保存后的文件的类型与原始文件类型相同。如果 它是一个gif或jpeg文件,保存后是一个bmp文件。
    当图片加载给Image属性时,将忽略它的原来的文件格式,而被保存一个bmp格式的文件。