←Select platform

OutsideBrush Property

Summary

Brush used to fill the area outside the pan rectangle.

Syntax
C#
C++/CLI
public Brush OutsideBrush { get; set; } 
public:  
   property System::Drawing::Brush^ OutsideBrush 
   { 
      System::Drawing::Brush^ get() 
      void set(System::Drawing::Brush^ value) 
   } 

Property Value

The brush used to fill the area outside the pan rectangle. Default value is null.

Remarks

Set the value of this property to any System.Drawing.Brush object to fill the area outside the pan rectangle. A nice user interface effect is to use a brush with an alpha value (for example, System.Drawing.SolidBrush using a Black System.Drawing.Color with alpha value equals to 128.

Example
C#
using Leadtools; 
using Leadtools.Controls; 
using Leadtools.Codecs; 
using Leadtools.Drawing; 
 
using Leadtools.ImageProcessing; 
using Leadtools.ImageProcessing.Color; 
 
PictureBox control = new PictureBox(); 
control.Width = 400; 
control.Dock = DockStyle.Left; 
_control.Controls.Add(control); 
 
control.BringToFront(); 
_imageViewer.BringToFront(); 
 
ImageViewerPanControl panControl = new ImageViewerPanControl(); 
panControl.EnablePan = true; 
panControl.BorderPen = Pens.Yellow; 
//panControl.InsideBrush = new SolidBrush(Color.FromArgb(128, 0, 0, 0)); 
panControl.OutsideBrush = new SolidBrush(Color.FromArgb(128, 0, 0, 0)); 
panControl.WorkingCursor = Cursors.Hand; 
panControl.Control = control; 
 
panControl.ImageViewer = _imageViewer; 
Requirements

Target Platforms

Help Version 22.0.2023.1.24
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.