Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Anything like TJpegimage in FMX??


This question is answered.


Permlink Replies: 5 - Last Post: Apr 2, 2015 12:49 PM Last Post By: Remy Lebeau (Te...
Todd Frankson

Posts: 39
Registered: 12/19/14
Anything like TJpegimage in FMX??  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 1, 2015 4:30 PM
XE 7.1

Was wondering if there is anything in FMX like TJpegimage
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: Anything like TJpegimage in FMX??
Correct
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 1, 2015 4:46 PM   in response to: Todd Frankson in response to: Todd Frankson
Todd wrote:

Was wondering if there is anything in FMX like TJpegimage

FireMonkey does not separate different image formats into distinct classes
like VCL does. FMX.Graphics.TBitmap handles every image format that is implemented
in FMX.Graphics.TBitmapCodecManager, which includes JPG on all platforms.

http://docwiki.embarcadero.com/Libraries/XE7/en/FMX.Graphics.TBitmapCodecManager

http://docwiki.embarcadero.com/Libraries/XE7/en/FMX.Graphics.TBitmap

--
Remy Lebeau (TeamB)
Todd Frankson

Posts: 39
Registered: 12/19/14
Re: Anything like TJpegimage in FMX??  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 2, 2015 8:38 AM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
Remy Lebeau (TeamB) wrote:
Todd wrote:

Was wondering if there is anything in FMX like TJpegimage

FireMonkey does not separate different image formats into distinct classes
like VCL does. FMX.Graphics.TBitmap handles every image format that is implemented
in FMX.Graphics.TBitmapCodecManager, which includes JPG on all platforms.

http://docwiki.embarcadero.com/Libraries/XE7/en/FMX.Graphics.TBitmapCodecManager

http://docwiki.embarcadero.com/Libraries/XE7/en/FMX.Graphics.TBitmap

--
Remy Lebeau (TeamB)

Thanks Remy.

I had found references to TBitmapCodec And TBitmapCodecAndroid, but nothing more. That looks like it will work for me.
Brian Hamilton ...

Posts: 556
Registered: 10/14/04
Re: Anything like TJpegimage in FMX??  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 2, 2015 11:01 AM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
basiscly even though you are using a tbitmap in FM
it will know to save as a jpeg by the file extension name being .jpg or .jpeg
Todd Frankson

Posts: 39
Registered: 12/19/14
Re: Anything like TJpegimage in FMX??  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 2, 2015 12:01 PM   in response to: Brian Hamilton ... in response to: Brian Hamilton ...
Brian Hamilton wrote:
basiscly even though you are using a tbitmap in FM
it will know to save as a jpeg by the file extension name being .jpg or .jpeg

Not saving, but thanks for the info...

Have a bunch of streamed TJpegImage's that I need to bounce around.
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: Anything like TJpegimage in FMX??  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 2, 2015 12:49 PM   in response to: Todd Frankson in response to: Todd Frankson
Todd wrote:

Not saving, but thanks for the info...

FIreMonkey's TBitmap.LoadFromStream() analyzes and decodes stream data based
on the actual image format of the data.

--
Remy Lebeau (TeamB)
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02