/// <summary> /// Initializes a new image by cloning data from the old image. If the /// provided image is null, this constructor behaves identically to the /// default constructor. /// </summary> public MenuOptionImage( MenuOptionImage copyFrom ) { if( copyFrom != null ) { m_dropShadow = (DropShadowOptions)copyFrom.m_dropShadow.Clone(); m_image = (Bitmap)copyFrom.m_image.Clone(); m_transparency = copyFrom.m_transparency; m_transparencyKey = copyFrom.m_transparencyKey; m_useDropShadow = copyFrom.m_useDropShadow; } }
/// <summary> /// Initializes a new image editor and edits the provided menu option. /// </summary> public MenuOptionImageEditorUI( MenuOptionImage edit ) : this() { OptionImage = edit; }