sourceImage = openBitMap "d:\\testimage.bmp"outputImage = bitmap sourceImage.width sourceImage.heightcopy sourceImage outputImage outputImage.fileName = "d:\\testImage.jpg"JPEG.setQuality 99save outputImage--BitmapIO