API Reference > OdDb Classes > OdDbRasterImageDefReactor Class > OdDbRasterImageDefReactor Methods > OdDbRasterImageDefReactor::onDeleteImage Method
OdDbRasterImageDefReactor::onDeleteImage Method
Syntax
C++
virtual bool onDeleteImage(const OdDbRasterImageDef* pImageDef, DeleteImageEvent event, bool cancelAllowed);
Parameters 
Description 
const OdDbRasterImageDef* pImageDef 
[in] Pointer to the OdDbRasterImageDef object sending this notification.  
DeleteImageEvent event 
[in] Event triggering the notification.  
bool cancelAllowed 
[in] True to enable user cancellation, false to disable. 

Returns true if and only if not cancelled.

Notification function called whenever an OdDbRasterImageDef object is about to be unloaded or erased. 

 

Event must be one of the following: 

 

Name 
Value 
kUnload 
kErase 

 

Use imageModified() to determine if the image definition has been modified.

Copyright © 2002–2021. Open Design Alliance. All rights reserved.