我原有图为一张白色背景,彩色前景的原图
现在需要把这张图生成:1。黑色背景,彩色前景;2。白色背景,彩色前景
两张图。
我在PICTUREBOX中通过点的形式把两张图生成后,想保存,用SAVE PICTURE.PICTURE它会提示对象不存在。用SAVE PICTURE.image则保存的是PICTUREBOX的背景色。因为我想通过一张原图来生成上述的两张图,来实现图片的透明背景,,,,用来做动画。
或则有更好的方法,能生成两张所需的图片的。还望赐教!!!

解决方案 »

  1.   

    picturebox的autoredraw属性设为true就不会保存的只是背景了。
      

  2.   

    Picture1.AutoRedraw = True
    PICTURE1.PICTURE = Picture1.Image
    Picture1.AutoRedraw = FalseSavePicture PICTURE1.PICTURE, "yourfilename.bmp"
      

  3.   

    picture1.picture=picture1.image
    再保存
      

  4.   

    抄:Picture1.AutoRedraw = True
    PICTURE1.PICTURE = Picture1.Image
    Picture1.AutoRedraw = FalseSavePicture PICTURE1.PICTURE, "yourfilename.bmp"