LucaMs Expert Licensed User Longtime User Jan 15, 2020 #1 I tested this new library: Animated GIF encoder It created a gif file about 4 times bigger than I can get using LICEcap. Do you think I could use CompressedBC to reduce the gif file size? And... how? The library has a method to create each frame which requires a B4XBitmap.
I tested this new library: Animated GIF encoder It created a gif file about 4 times bigger than I can get using LICEcap. Do you think I could use CompressedBC to reduce the gif file size? And... how? The library has a method to create each frame which requires a B4XBitmap.
Erel B4X founder Staff member Licensed User Longtime User Jan 15, 2020 #2 No. CompressedBC will not help here. It is an in-memory format. Make sure to use LoadBitmapResize when you add the frames. Upvote 0
No. CompressedBC will not help here. It is an in-memory format. Make sure to use LoadBitmapResize when you add the frames.
LucaMs Expert Licensed User Longtime User Jan 15, 2020 #3 Erel said: Make sure to use LoadBitmapResize when you add the frames. Click to expand... I need to create the bitmap at runtime (and the size is fixed), so I use the Snapshot method of a Pane. Upvote 0
Erel said: Make sure to use LoadBitmapResize when you add the frames. Click to expand... I need to create the bitmap at runtime (and the size is fixed), so I use the Snapshot method of a Pane.
Erel B4X founder Staff member Licensed User Longtime User Jan 15, 2020 #4 LucaMs said: so I use the Snapshot method of a Pane. Click to expand... If it is in B4A then the snapshot can be very large because of the device scale. B4X: bmp = bmp.Resize(bmp.Width / xui.Scale, bmp.Height / xui.Scale, False) Upvote 0
LucaMs said: so I use the Snapshot method of a Pane. Click to expand... If it is in B4A then the snapshot can be very large because of the device scale. B4X: bmp = bmp.Resize(bmp.Width / xui.Scale, bmp.Height / xui.Scale, False)
LucaMs Expert Licensed User Longtime User Jan 15, 2020 #5 Erel said: If it is in B4A Click to expand... I was going to specify, but since I wrote "Pane" I thought it would be superfluous Thank you, Erel; I fear it is necessary to optimize that library. Upvote 0
Erel said: If it is in B4A Click to expand... I was going to specify, but since I wrote "Pane" I thought it would be superfluous Thank you, Erel; I fear it is necessary to optimize that library.