How to get viewport a wallpaper


#1

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?


(Dale Fugier) #2

Try this:

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