Salut a tous,
Je m'arrache les cheveux depuis une bonne semaine pour compresser une image bmp en jpg.
Quelqu'un aurait il une solution miracle ! Un algo une Dll ??
Ce bout de code en CF2.0 renvoi une erreur notSupportedException qui selon Microsoft est normale mais ne donne pas la solution miracle.
TryDim str AsNew System.IO.FileStream(".\image.bmp", IO.FileMode.Open) 'Bien sure j'ai une image.bmp sur mon PDA ;)Dim b AsNew Bitmap(str)PictureBox1.Image = b
PictureBox1.SizeMode = PictureBoxSizeMode.StretchImage
PictureBox1.Image.Save(
".\image2.bmp", System.Drawing.Imaging.ImageFormat.Bmp) 'FonctionnePictureBox1.Image.Save(
".\image.jpg", System.Drawing.Imaging.ImageFormat.Jpeg) 'Renvoi l'exception not supported exceptionCatch ex As ExceptionMessageBox.Show(ex.Message)
EndTryMerci d'avance