Kaarigar

Your Rank: 85
Points: 9
Emailx45 wrote: See in HELP SYSTEM:
FMX.Graphics.TBitmap.LoadFromFile
docwiki.embarcadero.com/Libraries/Berlin...TBitmap.LoadFromFile
FMX.Graphics.TBitmap.LoadFromStream
docwiki.embarcadero.com/Libraries/Berlin...itmap.LoadFromStream
FMX.Graphics.TBitmapCodecManager
docwiki.embarcadero.com/Libraries/Berlin...ported_Image_FormatsThanks - I had already looked into these help pages. None of them talk about animated gifs - which contains multiple bitmap data (for each animation frame), so I understand why it doesn't work as expected. I guess these LoadFrom* methods are designed for loading data from a single image - which is understandable. Perhaps what I need a means to share a document - I can use that to share the animated GIF. But I didn't find a way to share document in the Embarcadero help. Is there a way to share documents in Delphi?// I believe that works because GIF is supported (to Android) by LoadFromFile() / LoadFromStream() on ShowShareSheetAction.Bitmap properry // ShowShareSheetAction.Bitmap.LoadFromFile( pathInAndroid + 'filename.gif');
Read More...
My app creates animated GIF programmatically. The animated gif is saved in the app's private storage. How can I share this image or copy it to the device's album or camera roll? I have tried to use TShowShareSheetAction object, but it only accepts a single bitmap to share - while in my case the animated GIF doesn't have a single bitmap. I am using TBitmap.LoadFromFile() to load the bitmap from the animated gif file. But it reads only the first bitmap. As a result, when the image is shared, it has a single frame, and does not animate.
Is there a solution for this problem? How can I copy or share the entire animated GIF file contents? I will really appreciate any help on this. Thank you in advance.
Read More...
Probably ite requires read permission in the "USer Permissions" in the options? I have the "Read external storage" set to true. Also make sure that the filename used in the code to open is the same case as the actual filename on device.
Read More...
Yes, I had checked that the apk file deployed on the device did contain the file in questions. As I reported, it was my error - I was trying to open a file that wasn't matching case wise with the actual file. Once I fixed that, I was able to access the file.
Read More...
It was my mistake - I had overlooked that the filenames are case sensitive on android. That caused this error.
Read More...
In an android app, I am trying to open a text file. The text file is already added to the deployment in the assets\internal\ folder. However, when I run this app on the device, I always get the error the
"Cannot open file "/data/user/0/com.embarcadero.myapp/files/StringLines.txt No such file or directory
stringlines.LoadFromFile(System.IOUtils.TPath.Combine(System.IOUtils.TPath.GetDocumentsPath, 'StringLines.Txt'));
to properly open the file. Why am I getting this error? Is there some project setting that I have to tweak to make this happen properly. This is very frustrating. I will really appreciate if someone can point me to the right solution for this problem I am facing. Thank you.
Read More...
I need to create animated GIF using the bitmaps that I have in memory. How can I create animated GIF using these bitmaps? Thank you.
Read More...
Can anyone please help with this question? Is there any extra documentation on configuring android development? I have followed all the directions which I find in the documentation. Thank you!
Read More...
I have several Andorid SDKs installed - 22, 27, 28, and P. However I only see Andoid 25.2..5 32 Bit in the SDK Versions in the Tools->Options->SDK Manager->SDK Versions. Do I need to do some more configurations to make others appear in the SDK Versions? Thanks!
Read More...
I have a rectangle and a string. I want to render this string inside that rectangle using a particular font with the largest font size possible without overrunning the rectangle boundary. The string can be word-wrapped (i.e. multi-line) however the string itself doesn't have the line-break characters embedded in it.
How to accomplish this?
I have tried to solve this problem using a TRectangle and a TLabel. I use the Canvas.TextWidth and Canvas.TextHeight to calculate string extents and iteratively incrementing the font size till I get a font size that is just large enough. While this works on certain device (such as android or iPhone), it fails on iPad - the text overflows fro the rectangle. I think this has something to do with the Canvas.Scale (hi-res device vs. low-res device) but I can't figure out what the relation between Canvas.TextWidth/Height has with the Canvas.Scale.
Can you share your thoughts if you have worked on a similar or same problem? Thanks!
Read More...
shuiwang wrote:
eg: label->TextSettings->FontColor = TAlphaColor(TAlphaColorRec::Green);
Read More...
Warren wrote:
Embarcadero, in their infinite wisdom starts promoting new forums (or answers, of stackoverflow clone, or whatever) while simultaneously unable to maintain the old forums even in read-only mode. This is a big problem because even Google points to threads on the old forums when it is used for searching for answers. At least they should create enough categories here for people to know where to post questions. Also, what the hell is answers and forums? Which one will I pick for what posting questions? Sometimes I may want answer to question - so there will not be no discussions happening on the answers? Can a question be answered without any discussion?
Read More...
Just learned from the XE7 webinar that original embarcadero forums are being replaced by this Answers forum So, where should I file questions about different categories that were on the forums - such as Delphi, Firemonkey, etc.?...
I have a rectangle and a string. I want to render this string inside that rectangle using a particul
I have a rectangle and a string. I want to render this string inside that rectangle using a particul