On 10/06/2009 10:55 AM, Lucian Sabo wrote:
> Hello all,
> 
> I want to create a plugin for Windows only that makes use of a windows DLL.
> The function from the DLL I need to call requires a DIB Handle as parameter 
> and the original file name.
> I did not found any method to get active selection as Windows DIB HANDLE.

Hi,

Should work to get the active selection using gimp_image_get_selection() [1]
and then create a DIB from that using pixel data fetched with e.g.
GimpPixelRgn [2]

 / Martin

[1] 
http://developer.gimp.org/api/2.0/libgimp/libgimp-gimpimage.html#gimp-image-get-selection
[2] http://developer.gimp.org/api/2.0/libgimp/libgimp-gimppixelrgn.html

-- 

My GIMP Blog:
http://www.chromecode.com/

_______________________________________________
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

Reply via email to