Public Function ImageResize() As Boolean Dim loGraphics As System.Drawing.Graphics Dim loImage As System.Drawing.Bitmap loImage = New System.Drawing.Bitmap(nWidth, nHeight, oImage.PixelFormat) ' Make sure we can resize If loImage.PixelFormat = Drawing.Imaging.PixelFormat.Format1bppIndexed Or _ loImage.PixelFormat = Drawing.Imaging.PixelFormat.Format4bppIndexed Or _ loImage.PixelFormat = Drawing.Imaging.PixelFormat.Format8bppIndexed Or _ loImage.PixelFormat = Drawing.Imaging.PixelFormat.Undefined Or _ loImage.PixelFormat = Drawing.Imaging.PixelFormat.DontCare Or _ loImage.PixelFormat = Drawing.Imaging.PixelFormat.Format16bppArgb1555 Or _ loImage.PixelFormat = Drawing.Imaging.PixelFormat.Format16bppGrayScale Then cError = cPixelFormatNotSupported nError = 1 Return False End If loGraphics = System.Drawing.Graphics.FromImage(loImage) loGraphics.SmoothingMode = Drawing.Drawing2D.SmoothingMode.HighQuality loGraphics.InterpolationMode = Drawing.Drawing2D.InterpolationMode.HighQualityBicubic loGraphics.DrawImage(oImage, 0, 0, loImage.Width, loImage.Height) loGraphics.Dispose() oImage = loImage Return True End Function End ClassHowever, when this is done, the JPG format of the file is not a recognized format to be viewed in LViewPro. Is there any way to have this code to create a standard JPG file?