How to get viewport a wallpaper

Hello

It’s weird I can see SetWallpaperImage method in the CRhinoViewport but can’t find a getter…is there any way to get the wallpaper file?

Try this:

CRhinoView* view = RhinoApp().ActiveView();
if( view )
{
  ON_wString filename = view->ActiveViewport().View().m_wallpaper_image.m_bitmap_filename;
  // TODO....
}