| 1 | // tlb2java |
| 2 | package com.moesol.bindings.platform_sdk.component_services; |
| 3 | |
| 4 | |
| 5 | /** |
| 6 | * Standard OLE functions exported by OLE. |
| 7 | */ |
| 8 | public class StdFunctions { |
| 9 | /** |
| 10 | * Load a Picture. |
| 11 | * |
| 12 | * @param filename |
| 13 | * Filename of picture to load, see OLE Documentation for file formats. |
| 14 | * @param widthDesired |
| 15 | * If specified, width to scale picture to. |
| 16 | * @param heightDesired |
| 17 | * If specified, height to scale picture to. |
| 18 | * @param flags |
| 19 | * <code>IDL: [in] [optional] [default] LoadPictureConstants</code> |
| 20 | <!-- /xjavadoc/library[@name='stdole']/module[@name='StdFunctions']/method[@name='LoadPicture']/param[@name='flags']/javadoc/node()--> |
| 21 | * @return |
| 22 | * Newly loaded picture. |
| 23 | */ |
| 24 | public static com.moesol.bindings.platform_sdk.component_services.Picture LoadPicture( |
| 25 | /*[in]*/ Object filename, |
| 26 | /*[in]*/ int widthDesired, |
| 27 | /*[in]*/ int heightDesired, |
| 28 | /*[in]*/ int flags) { |
| 29 | return jni_LoadPicture(filename, widthDesired, heightDesired, flags); |
| 30 | } |
| 31 | private static native com.moesol.bindings.platform_sdk.component_services.Picture jni_LoadPicture( |
| 32 | /*[in]*/ Object filename, |
| 33 | /*[in]*/ int widthDesired, |
| 34 | /*[in]*/ int heightDesired, |
| 35 | /*[in]*/ int flags); |
| 36 | |
| 37 | /** |
| 38 | * <code>IDL: [ helpstring("Saves a picture to a file") ]</code> |
| 39 | <!-- /xjavadoc/library[@name='stdole']/module[@name='StdFunctions']/method[@name='SavePicture']/javadoc/node()--> |
| 40 | * |
| 41 | * @param Picture |
| 42 | * <code>IDL: [in] Picture*</code> |
| 43 | <!-- /xjavadoc/library[@name='stdole']/module[@name='StdFunctions']/method[@name='SavePicture']/param[@name='Picture']/javadoc/node()--> |
| 44 | * @param filename |
| 45 | * <code>IDL: [in] BSTR</code> |
| 46 | <!-- /xjavadoc/library[@name='stdole']/module[@name='StdFunctions']/method[@name='SavePicture']/param[@name='filename']/javadoc/node()--> |
| 47 | * @return |
| 48 | * <code>IDL: HRESULT</code> |
| 49 | <!-- /xjavadoc/library[@name='stdole']/module[@name='StdFunctions']/method[@name='SavePicture']/return/javadoc/node()--> |
| 50 | */ |
| 51 | public static /* HRESULT */ int SavePicture( |
| 52 | /*[in]*/ com.moesol.bindings.platform_sdk.component_services.Picture Picture, |
| 53 | /*[in]*/ String filename) { |
| 54 | return jni_SavePicture(Picture, filename); |
| 55 | } |
| 56 | private static native /* HRESULT */ int jni_SavePicture( |
| 57 | /*[in]*/ com.moesol.bindings.platform_sdk.component_services.Picture Picture, |
| 58 | /*[in]*/ String filename); |
| 59 | |
| 60 | } |