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 is the number for the new image to create. If #PB_Any is used, the new image number will be returned as 'Result'.

Depth specifies the color depth for the new image. If it is omitted or set to #PB_Image_DisplayFormat, the image format is taken from the desktop format. Valid 'Depth' values can be: 1, 2, 4, 8, 16, 24 and 32 bits. When manipulating true colors formats, and want save back the modifications without color information loss, it's advised to use the 24 or 32 bits values. If the images are only used for displaying on the screen, #PB_Image_DisplayFormat will provide faster performances.

Supported OS

All

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