EventDropImage()

Syntax

Result = EventDropImage(#Image [, Depth])
Description
After a #PB_Event_GadgetDrop or #PB_Event_WindowDrop is received by WaitWindowEvent() or WindowEvent() with a format (can be get with EventDropType()) of #PB_Drop_Image, this function can be used to retrieve the dropped image.

Parameters

#Image The number for the new image to create. #PB_Any can be used to auto-generate this number.
Depth (optional) The color depth for the new image. Supported values are 24 and 32-bit. 24-bit is the default.

Return value

Returns nonzero if the image was successfully created and zero if not. If #PB_Any was used for the #Image parameter then the generated number is returned on success.

See Also

EnableGadgetDrop(), EnableWindowDrop(), EventDropType(), EventDropAction(), EventDropX(), EventDropY()

Supported OS

All

<- EventDropFiles() - DragDrop Index - EventDropPrivate() ->