Passing bitmaps from the C++ app to the flash player.

DLL Edition of the F-IN-BOX
amit
Posts: 5
Joined: Mon Mar 27, 2006 3:20 pm

Passing bitmaps from the C++ app to the flash player.

Postby amit » Mon Mar 27, 2006 3:35 pm

Hello,

I understand that it is possible to get a bitmap from the flash player.

I would like to know if it is possible to do it in the opposite direction also. I would like to use the flash player to manipulate bitmaps that are passed to it from the C++ application.

Thanks in advance,
Amit

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Re: Passing bitmaps from the C++ app to the flash player.

Postby Softanics » Mon Mar 27, 2006 4:52 pm

Thank you for your question.

When a flash movie loads a JPG image, you can intercept it and provide your image. A simple example how to do it is available in the project Sample6_ExternalResourcesEmbedding: http://www.flashplayercontrol.com/downl ... rolDLL.zip
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html

amit
Posts: 5
Joined: Mon Mar 27, 2006 3:20 pm

Postby amit » Sun Apr 16, 2006 9:59 pm

I have two more questions: :-)

1) is it possible to pass GDI/GDI+ bitmaps to the flash movie without saving them first? My application stores the images as plain RBG buffers. I want to pass these images to the flash movie but without first having to translate them to jpg/gif/png formats.

2) Does the 'FPCN_LOADEXTERNALRESOURCE' mechanism support the 'Loader' class of actionscript 3.0, or does it work only with loadMovie? If not, is there a plan to support the actionscript 3.0 in the near future?

Thanks in advance,
Amit

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Mon Apr 17, 2006 5:37 am

amit wrote:1) is it possible to pass GDI/GDI+ bitmaps to the flash movie without saving them first? My application stores the images as plain RBG buffers. I want to pass these images to the flash movie but without first having to translate them to jpg/gif/png formats.


Flash doesn't understand plain RGB, it understand JPG. It means you should provide an image of JPG format.

amit wrote:2) Does the 'FPCN_LOADEXTERNALRESOURCE' mechanism support the 'Loader' class of actionscript 3.0, or does it work only with loadMovie? If not, is there a plan to support the actionscript 3.0 in the near future?


FPCN_LOADEXTERNALRESOURCE should be compatible with the Loader class.
Best regards, Artem A. Razin,

F-IN-BOX support

Ask your question here: http://www.f-in-box.com/support.html


Return to “DLL Edition”

Who is online

Users browsing this forum: No registered users and 10 guests