Skip navigation
Currently Being Moderated

How to grab image?

Oct 20, 2008 4:51 AM

Hi everyone.
I make an export plugin
I try to save image to the file.
Have a few question:
1. Is it possible to use SPActionControlSuite in export plugin? it returns error when i try to AcquireSuite..
2. In my test i try save HBITMAP from HDC from gExportRecord->displayPixels to file using CxImage. But I always have a black filled rect in file.. How can I get HBITMAP or save layer/or whole image to the file from export plugin?

wbr Dmitry
 
Replies
  • Currently Being Moderated
    Oct 22, 2008 2:20 PM   in reply to (sax0n)
    Why are you messing with DisplayPixels (which is only used to draw to the display)?

    Just get the values from the export API and write them to your file.

    Have you looked at the example export plugin?
     
    |
    Mark as:
  • Currently Being Moderated
    Mar 19, 2012 1:39 PM   in reply to Chris Cox

    I have the same problem, outbound sample is not the good example.

     

    Chris Cox, can you post here an example how to export data in jpeg file or bmp or png?

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 19, 2012 11:57 PM   in reply to mola10

    You already have lots of examples in the SDK.

    For JPG, BMP, or PNG you should just use Photoshop to save.

     

    For other formats, you could write a format plugin, or an export plugin.

    If you know C, it should take you 10 minutes or less to modify one of the example plugins.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 20, 2012 1:50 AM   in reply to Chris Cox

    Good support

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)