예제 #1
0
            private void InternalSelectObject(EmfStockObject stockObject)
            {
                switch (stockObject)
                {
                case EmfStockObject.BLACK_BRUSH:
                    _brush = new SolidBrush(Color.Black);
                    break;

                case EmfStockObject.DC_BRUSH:
                    throw new NotImplementedException();

                case EmfStockObject.DKGRAY_BRUSH:
                    _brush = new SolidBrush(Color.DarkGray);
                    break;

                case EmfStockObject.GRAY_BRUSH:
                    _brush = new SolidBrush(Color.Gray);
                    break;

                case EmfStockObject.LTGRAY_BRUSH:
                    _brush = new SolidBrush(Color.LightGray);
                    break;

                case EmfStockObject.NULL_BRUSH:
                    _brush = null;
                    break;

                case EmfStockObject.WHITE_BRUSH:
                    _brush = new SolidBrush(Color.White);
                    break;
                }
            }
예제 #2
0
 public ObjectHandle(EmfStockObject stockObject)
 {
     _stockObject = stockObject;
 }
예제 #3
0
 public ObjectHandle(EmfStockObject stockObject) => _stockObject = stockObject;
예제 #4
0
            private void InternalSelectObject(EmfStockObject stockObject)
            {
                switch (stockObject)
                {
                    case EmfStockObject.BLACK_BRUSH:
                        _brush = new SolidBrush(Color.Black);
                        break;

                    case EmfStockObject.DC_BRUSH:
                        throw new NotImplementedException();

                    case EmfStockObject.DKGRAY_BRUSH:
                        _brush = new SolidBrush(Color.DarkGray);
                        break;

                    case EmfStockObject.GRAY_BRUSH:
                        _brush = new SolidBrush(Color.Gray);
                        break;

                    case EmfStockObject.LTGRAY_BRUSH:
                        _brush = new SolidBrush(Color.LightGray);
                        break;

                    case EmfStockObject.NULL_BRUSH:
                        _brush = null;
                        break;

                    case EmfStockObject.WHITE_BRUSH:
                        _brush = new SolidBrush(Color.White);
                        break;
                }
            }