Hi Andrew,
can you explain the release method more in detail for me..?
I searched the whole thread of the ImageLibEx, but you only mentioned that you added this to the lib, not how to use.I read the help, i understand, that i need to assign a new bitmap to the BitmapEx before i can release it, but i don't know how.
This is was my code basically does, a simple resize:
This is giving me an error message, obviously because i missed something...
Edit:
I found - by accident - , that this piece of code is working without giving an error message:
I assume that it's working because it uses a BitmapEx bitmap that does not lock the file as the .net bitmap does.This is handy for me because i do not need the image object in that particular case, but i'm still interested in how the release method works.
regards,
TWELVE
can you explain the release method more in detail for me..?
I searched the whole thread of the ImageLibEx, but you only mentioned that you added this to the lib, not how to use.I read the help, i understand, that i need to assign a new bitmap to the BitmapEx before i can release it, but i don't know how.
This is was my code basically does, a simple resize:
B4X:
Image1.LoadPicture(MyImage)
Image1.Visible= True
BitmapEx.New3(Image1.image)
BitmapEx.Zoom(25)
BitmapEx.Release
BitmapEx.SaveImage(MyImage,"J")
This is giving me an error message, obviously because i missed something...
Edit:
I found - by accident - , that this piece of code is working without giving an error message:
B4X:
BitmapEx.New1(MyImage)
BitmapEx.Zoom(25)
BitmapEx.SaveImage(MyImage,"J")
I assume that it's working because it uses a BitmapEx bitmap that does not lock the file as the .net bitmap does.This is handy for me because i do not need the image object in that particular case, but i'm still interested in how the release method works.
regards,
TWELVE
Last edited: