public virtual void EventOccurred(IEventData data, EventType type) { switch (type) { case EventType.RENDER_IMAGE: { ImageRenderInfo renderInfo = (ImageRenderInfo)data; if (!renderInfo.IsInline()) { Rectangle boundingRect = GetImageBoundingBox(renderInfo.GetImageCtm()); imageRectangles.Add(boundingRect); } break; } default: { break; } } }