Image1.LoadPicture(MyImage)
Image1.Visible= True
BitmapEx.New3(Image1.image)
BitmapEx.Zoom(25)
BitmapEx.Release
BitmapEx.SaveImage(MyImage,"J")
BitmapEx.New1(MyImage)
BitmapEx.Zoom(25)
BitmapEx.SaveImage(MyImage,"J")
BitmapEx.Release [COLOR="Red"]' Doom![/COLOR]
BitmapEx.SaveImage(MyImage,"J")
BitmapEx.Zoom(25)
BitmapEx.SaveImage(MyImage,"J")
What are you trying to do with ImageEdit on the device that you need to manipulate such large bitmaps?
ImageEdit is not the correct library for this. You should use either BitmapEx.Zoom from ImageLibEx to resize and save the images or my http://www.b4x.com/forum/addit...html#post30129.
However if you are distributing your app to other users there is a licensing condition that you or they pay for a license to use the Jpeg library as the license I negotiated for Basic4ppc users covers you for your own use only.
I don't understand the aspect ratio comment but ImageLibEx will do what you want if you manage the bitmaps correctly. DrawerEx.DrawImage will let you crop or copy parts of images and even zoom them. BitmapEx.Zoom is in fact a convenience function that does the same as DrawerEx,DrawImage but handles the bitmap management for you.- and as i found later - because ImageLibEx is handling the acpect ratio by itself.
Yes. The whole purpose of that library is to resize and display or save large images that otherwise could not be handled by a device and would give out of memory problems. Look at the help and demo. Note that the license, as noted in the help, requires that you, or the recipient pay a fee when you pass an application using the library to another person regardless of whether you sell it or give it away it for free.I ... could not find any resizing functionality....did i overlook something..?
I don't understand the aspect ratio comment but ImageLibEx will do what you want if you manage the bitmaps correctly.
Yes. The whole purpose of that library is to resize and display or save large images that otherwise could not be handled by a device and would give out of memory problems. Look at the help and demo.
GetSize(filename As String)
Load(filename As String)
LoadArea(filename As String, x As Int32, y As Int32, width As Int32, height As Int32, highquality As Boolean )
LoadThumbnail(filename As String, destwidth As Int32, destheight As Int32, highquality As Boolean )
New1 : Creates a new Jpeg object.
Save(bitmap As Bitmap, filename As String, quality As Int32)
Load(filename As String) : On the device the Bitmap is created line by line avoiding reading the entire file into memory before decoding it so saving some memory use but as the entire bitmap is created at full size using it for large images will cause memory problems. This method sets the Height and Width properties.
LoadThumbnail and LoadAreaThumbnail. The demo actually shows both a fullsize and an area crop resize save taking place.if the help would be mentioning any resize functionality
I've no idea as you don't state the function that is in error but maybe you are trying to save in a format that the device doesn't support. Many devices only support jpg."NotSupportedException".So what's this..???
I've no idea as you don't state the function that is in error but maybe you are trying to save in a format that the device doesn't support. Many devices only support jpg.
BitmapEx.New1(MyImage)
BitmapEx.Zoom(25)
BitmapEx.SaveImage(MyImage,"J")
They do rescale! Look at the demo, it saves a reduced size image of the whole of a very large image and a reduced sized image of a selected area of that image.These are the methods of the jpeg lib...no zooming / scaling at all:
They do rescale!
But i could imagine that LoadThumbnail() could do the job...
Quote:
Originally Posted by TWELVE
if the help would be mentioning any resize functionality
LoadThumbnail and LoadAreaThumbnail. The demo actually shows both a fullsize and an area crop resize save taking place.
BitmapEx.SaveImage(MyImage,"J")
I would be still interested into a solution for the "NotSupportedException" thingy
That normally would mean that the device does't support saving the bitmap in the requested format. However a format parameter of "J" looks fine so I'm sorry but I don't understand what the problem might be.II would be still interested into a solution for the "NotSupportedException" thingy.
To clarify the license. You only need to buy a single license to be classed as a developer. It's not very expensive at about 30 Euros and you can then distribute as many copies of any applications using it as you want. See About - JPEGator - dzenisiuk.infothe only drawback is the license thing.
What feature? Jpeg.Save will work on any device that can run Basic4ppc.Let's say, i would limit that particular feature to WM5 > Users
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?