Dear all,
Greetings,
I try to re-save png file after resize it,
But the result image seam byblack backgroundinstead oftransparent background.
any comment to solve this problem
I use this code :
Dim b1 As Bitmap
b1 = LoadBitmap(Dir, FileName)
b1.Resize(500,500,True)
out = File.OpenOutput(File.DirRootExternal, "/" & Image_name.Text, False)
b1.WriteToStream(out, 100, "PNG")
out.Close
Many thanks for your interest and for your reply.
Sure, I'll correct your notes.
About the image, sure the first image is transparent PNG and the created with Black background, I tested with may images.
note: I view the resized image in imageview and it appear still with transparent background so i think the problem from b1.WriteToStream(out, 100, "PNG")
what you think.