本文整理汇总了C#中System.Drawing.Icon.MakeTransparent方法的典型用法代码示例。如果您正苦于以下问题:C# Icon.MakeTransparent方法的具体用法?C# Icon.MakeTransparent怎么用?C# Icon.MakeTransparent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Drawing.Icon
的用法示例。
在下文中一共展示了Icon.MakeTransparent方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: InitForm
private void InitForm()
{
System.Drawing.Image image = new Bitmap(base.GetType(), "FieldNodes.bmp");
ImageList list = new ImageList {
TransparentColor = Color.Magenta
};
list.Images.AddStrip(image);
this._autoFieldCheck.Text = System.Design.SR.GetString("DCFEditor_AutoGen");
this._availableFieldsTree.ImageList = list;
this._addFieldButton.Text = System.Design.SR.GetString("DCFEditor_Add");
ColumnHeader header = new ColumnHeader {
Width = this._selFieldsList.Width - 4
};
this._selFieldsList.Columns.Add(header);
this._selFieldsList.SmallImageList = list;
Bitmap bitmap = new Icon(base.GetType(), "SortUp.ico").ToBitmap();
bitmap.MakeTransparent();
this._moveFieldUpButton.Image = bitmap;
this._moveFieldUpButton.AccessibleDescription = System.Design.SR.GetString("DCFEditor_MoveFieldUpDesc");
this._moveFieldUpButton.AccessibleName = System.Design.SR.GetString("DCFEditor_MoveFieldUpName");
Bitmap bitmap2 = new Icon(base.GetType(), "SortDown.ico").ToBitmap();
bitmap2.MakeTransparent();
this._moveFieldDownButton.Image = bitmap2;
this._moveFieldDownButton.AccessibleDescription = System.Design.SR.GetString("DCFEditor_MoveFieldDownDesc");
this._moveFieldDownButton.AccessibleName = System.Design.SR.GetString("DCFEditor_MoveFieldDownName");
Bitmap bitmap3 = new Icon(base.GetType(), "Delete.ico").ToBitmap();
bitmap3.MakeTransparent();
this._deleteFieldButton.Image = bitmap3;
this._deleteFieldButton.AccessibleDescription = System.Design.SR.GetString("DCFEditor_DeleteFieldDesc");
this._deleteFieldButton.AccessibleName = System.Design.SR.GetString("DCFEditor_DeleteFieldName");
this._templatizeLink.Text = System.Design.SR.GetString("DCFEditor_Templatize");
this._refreshSchemaLink.Text = System.Design.SR.GetString("DataSourceDesigner_RefreshSchemaNoHotkey");
this._refreshSchemaLink.Visible = (this._controlDesigner.DataSourceDesigner != null) && this._controlDesigner.DataSourceDesigner.CanRefreshSchema;
this._okButton.Text = System.Design.SR.GetString("OKCaption");
this._cancelButton.Text = System.Design.SR.GetString("CancelCaption");
this._selFieldLabel.Text = System.Design.SR.GetString("DCFEditor_FieldProps");
this._availableFieldsLabel.Text = System.Design.SR.GetString("DCFEditor_AvailableFields");
this._selFieldsLabel.Text = System.Design.SR.GetString("DCFEditor_SelectedFields");
this._currentFieldProps.Site = this._controlDesigner.Component.Site;
this.Text = System.Design.SR.GetString("DCFEditor_Text");
base.Icon = new Icon(base.GetType(), "DataControlFieldsEditor.ico");
}
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:42,代码来源:DataControlFieldsEditor.cs示例2: InitializeUI
private void InitializeUI()
{
this._parametersLabel.Text = System.Design.SR.GetString("ParameterEditorUserControl_ParametersLabel");
this._nameColumnHeader.Text = System.Design.SR.GetString("ParameterEditorUserControl_ParameterNameColumnHeader");
this._valueColumnHeader.Text = System.Design.SR.GetString("ParameterEditorUserControl_ParameterValueColumnHeader");
this._addParameterButton.Text = System.Design.SR.GetString("ParameterEditorUserControl_AddButton");
this._sourceLabel.Text = System.Design.SR.GetString("ParameterEditorUserControl_SourceLabel");
Bitmap bitmap = new Icon(typeof(ParameterEditorUserControl), "SortUp.ico").ToBitmap();
bitmap.MakeTransparent();
this._moveUpButton.Image = bitmap;
Bitmap bitmap2 = new Icon(typeof(ParameterEditorUserControl), "SortDown.ico").ToBitmap();
bitmap2.MakeTransparent();
this._moveDownButton.Image = bitmap2;
Bitmap bitmap3 = new Icon(typeof(ParameterEditorUserControl), "Delete.ico").ToBitmap();
bitmap3.MakeTransparent();
this._deleteParameterButton.Image = bitmap3;
this._moveUpButton.AccessibleName = System.Design.SR.GetString("ParameterEditorUserControl_MoveParameterUp");
this._moveDownButton.AccessibleName = System.Design.SR.GetString("ParameterEditorUserControl_MoveParameterDown");
this._deleteParameterButton.AccessibleName = System.Design.SR.GetString("ParameterEditorUserControl_DeleteParameter");
}
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:20,代码来源:ParameterEditorUserControl.cs示例3: InitializeComponent
private void InitializeComponent()
{
int height = 0xd9;
int width = 0x16c;
base.SuspendLayout();
this.fieldLabel.AutoSize = true;
this.fieldLabel.TabStop = false;
this.fieldLabel.TabIndex = 0;
this.fieldLabel.Text = System.Design.SR.GetString("DataFieldCollectionAvailableFields");
this.fieldLabel.MinimumSize = new Size(0x87, 15);
this.fieldLabel.MaximumSize = new Size(0x87, 30);
this.fieldLabel.SetBounds(0, 0, 0x87, 15);
this.selectedFieldsLabel.AutoSize = true;
this.selectedFieldsLabel.TabStop = false;
this.selectedFieldsLabel.Text = System.Design.SR.GetString("DataFieldCollectionSelectedFields");
this.selectedFieldsLabel.MinimumSize = new Size(0x87, 15);
this.selectedFieldsLabel.MaximumSize = new Size(0x87, 30);
this.selectedFieldsLabel.SetBounds(0xad, 0, 0x87, 15);
this.fieldsList.TabIndex = 1;
this.fieldsList.AllowDrop = false;
this.fieldsList.SelectedIndexChanged += new EventHandler(this.OnFieldsSelectedIndexChanged);
this.fieldsList.MouseDoubleClick += new MouseEventHandler(this.OnDoubleClickField);
this.fieldsList.KeyPress += new KeyPressEventHandler(this.OnKeyPressField);
this.fieldsList.SetBounds(0, 0, 0x87, 130);
this.selectedFieldsList.TabIndex = 3;
this.selectedFieldsList.AllowDrop = false;
this.selectedFieldsList.SelectedIndexChanged += new EventHandler(this.OnSelectedFieldsSelectedIndexChanged);
this.selectedFieldsList.MouseDoubleClick += new MouseEventHandler(this.OnDoubleClickSelectedField);
this.selectedFieldsList.KeyPress += new KeyPressEventHandler(this.OnKeyPressSelectedField);
this.selectedFieldsList.SetBounds(0, 0, 0x87, 130);
this.moveRight.TabIndex = 100;
this.moveRight.Text = ">";
this.moveRight.AccessibleName = System.Design.SR.GetString("DataFieldCollection_MoveRight");
this.moveRight.AccessibleDescription = System.Design.SR.GetString("DataFieldCollection_MoveRightDesc");
this.moveRight.Click += new EventHandler(this.OnMoveRight);
this.moveRight.Location = new Point(0, 0x2a);
this.moveRight.Size = new Size(0x1a, 0x17);
this.moveLeft.TabIndex = 0x65;
this.moveLeft.Text = "<";
this.moveLeft.AccessibleName = System.Design.SR.GetString("DataFieldCollection_MoveLeft");
this.moveLeft.AccessibleDescription = System.Design.SR.GetString("DataFieldCollection_MoveLeftDesc");
this.moveLeft.Click += new EventHandler(this.OnMoveLeft);
this.moveLeft.Location = new Point(0, 0x41);
this.moveLeft.Size = new Size(0x1a, 0x17);
this.moveLeftRightPanel.TabIndex = 2;
this.moveLeftRightPanel.Location = new Point(6, 0);
this.moveLeftRightPanel.Size = new Size(0x1c, 130);
this.moveLeftRightPanel.Controls.Add(this.moveLeft);
this.moveLeftRightPanel.Controls.Add(this.moveRight);
this.moveUp.TabIndex = 200;
Bitmap bitmap = new Icon(base.GetType(), "SortUp.ico").ToBitmap();
bitmap.MakeTransparent();
this.moveUp.Image = bitmap;
this.moveUp.AccessibleName = System.Design.SR.GetString("DataFieldCollection_MoveUp");
this.moveUp.AccessibleDescription = System.Design.SR.GetString("DataFieldCollection_MoveUpDesc");
this.moveUp.Click += new EventHandler(this.OnMoveUp);
this.moveUp.Location = new Point(0, 0);
this.moveUp.Size = new Size(0x1a, 0x17);
this.moveDown.TabIndex = 0xc9;
Bitmap bitmap2 = new Icon(base.GetType(), "SortDown.ico").ToBitmap();
bitmap2.MakeTransparent();
this.moveDown.Image = bitmap2;
this.moveDown.AccessibleName = System.Design.SR.GetString("DataFieldCollection_MoveDown");
this.moveDown.AccessibleDescription = System.Design.SR.GetString("DataFieldCollection_MoveDownDesc");
this.moveDown.Click += new EventHandler(this.OnMoveDown);
this.moveDown.Location = new Point(0, 0x18);
this.moveDown.Size = new Size(0x1a, 0x17);
this.moveUpDownPanel.TabIndex = 4;
this.moveUpDownPanel.Location = new Point(6, 0);
this.moveUpDownPanel.Size = new Size(0x1a, 0x2f);
this.moveUpDownPanel.Controls.Add(this.moveUp);
this.moveUpDownPanel.Controls.Add(this.moveDown);
this.okButton.TabIndex = 5;
this.okButton.Text = System.Design.SR.GetString("OKCaption");
this.okButton.Anchor = AnchorStyles.Right | AnchorStyles.Bottom;
this.okButton.DialogResult = DialogResult.OK;
this.okButton.Click += new EventHandler(this.OKButton_click);
this.okButton.SetBounds(((width - 12) - 150) - 6, (height - 12) - 0x17, 0x4b, 0x17);
this.cancelButton.TabIndex = 6;
this.cancelButton.Text = System.Design.SR.GetString("CancelCaption");
this.cancelButton.Anchor = AnchorStyles.Right | AnchorStyles.Bottom;
this.cancelButton.DialogResult = DialogResult.Cancel;
this.cancelButton.SetBounds((width - 12) - 0x4b, (height - 12) - 0x17, 0x4b, 0x17);
this.layoutPanel.AutoSize = true;
this.layoutPanel.AutoSizeMode = AutoSizeMode.GrowAndShrink;
this.layoutPanel.ColumnCount = 4;
this.layoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 135f));
this.layoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 38f));
this.layoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 135f));
this.layoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 32f));
this.layoutPanel.Location = new Point(12, 12);
this.layoutPanel.Size = new Size(340, 0x93);
this.layoutPanel.RowCount = 2;
this.layoutPanel.RowStyles.Add(new RowStyle());
this.layoutPanel.RowStyles.Add(new RowStyle(SizeType.Absolute, 130f));
this.layoutPanel.Controls.Add(this.fieldLabel, 0, 0);
this.layoutPanel.Controls.Add(this.selectedFieldsLabel, 2, 0);
this.layoutPanel.Controls.Add(this.fieldsList, 0, 1);
this.layoutPanel.Controls.Add(this.selectedFieldsList, 2, 1);
this.layoutPanel.Controls.Add(this.moveLeftRightPanel, 1, 1);
//.........这里部分代码省略.........
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:101,代码来源:DataFieldCollectionEditor.cs示例4: InitializeUI
private void InitializeUI()
{
this._bindingsLabel.Text = System.Design.SR.GetString("MenuBindingsEditor_Bindings");
this._schemaLabel.Text = System.Design.SR.GetString("MenuBindingsEditor_Schema");
this._okButton.Text = System.Design.SR.GetString("MenuBindingsEditor_OK");
this._applyButton.Text = System.Design.SR.GetString("MenuBindingsEditor_Apply");
this._cancelButton.Text = System.Design.SR.GetString("MenuBindingsEditor_Cancel");
this._propertiesLabel.Text = System.Design.SR.GetString("MenuBindingsEditor_BindingProperties");
this._addBindingButton.Text = System.Design.SR.GetString("MenuBindingsEditor_AddBinding");
this.Text = System.Design.SR.GetString("MenuBindingsEditor_Title");
Bitmap bitmap = new Icon(typeof(MenuBindingsEditorForm), "SortUp.ico").ToBitmap();
bitmap.MakeTransparent();
this._moveBindingUpButton.Image = bitmap;
this._moveBindingUpButton.AccessibleName = System.Design.SR.GetString("MenuBindingsEditor_MoveBindingUpName");
this._moveBindingUpButton.AccessibleDescription = System.Design.SR.GetString("MenuBindingsEditor_MoveBindingUpDescription");
Bitmap bitmap2 = new Icon(typeof(MenuBindingsEditorForm), "SortDown.ico").ToBitmap();
bitmap2.MakeTransparent();
this._moveBindingDownButton.Image = bitmap2;
this._moveBindingDownButton.AccessibleName = System.Design.SR.GetString("MenuBindingsEditor_MoveBindingDownName");
this._moveBindingDownButton.AccessibleDescription = System.Design.SR.GetString("MenuBindingsEditor_MoveBindingDownDescription");
Bitmap bitmap3 = new Icon(typeof(MenuBindingsEditorForm), "Delete.ico").ToBitmap();
bitmap3.MakeTransparent();
this._deleteBindingButton.Image = bitmap3;
this._deleteBindingButton.AccessibleName = System.Design.SR.GetString("MenuBindingsEditor_DeleteBindingName");
this._deleteBindingButton.AccessibleDescription = System.Design.SR.GetString("MenuBindingsEditor_DeleteBindingDescription");
base.Icon = null;
}
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:27,代码来源:MenuBindingsEditorForm.cs示例5: InitForm
private void InitForm()
{
this.autoColumnCheck = new System.Windows.Forms.CheckBox();
GroupLabel label = new GroupLabel();
System.Windows.Forms.Label label2 = new System.Windows.Forms.Label();
this.availableColumnsTree = new System.Windows.Forms.TreeView();
this.addColumnButton = new System.Windows.Forms.Button();
System.Windows.Forms.Label label3 = new System.Windows.Forms.Label();
this.selColumnsList = new ListView();
this.moveColumnUpButton = new System.Windows.Forms.Button();
this.moveColumnDownButton = new System.Windows.Forms.Button();
this.deleteColumnButton = new System.Windows.Forms.Button();
this.columnPropsGroup = new GroupLabel();
System.Windows.Forms.Label label4 = new System.Windows.Forms.Label();
this.columnHeaderTextEdit = new System.Windows.Forms.TextBox();
System.Windows.Forms.Label label5 = new System.Windows.Forms.Label();
this.columnHeaderImageEdit = new System.Windows.Forms.TextBox();
this.columnHeaderImagePickerButton = new System.Windows.Forms.Button();
System.Windows.Forms.Label label6 = new System.Windows.Forms.Label();
this.columnFooterTextEdit = new System.Windows.Forms.TextBox();
System.Windows.Forms.Label label7 = new System.Windows.Forms.Label();
this.columnSortExprCombo = new ComboBox();
this.columnVisibleCheck = new System.Windows.Forms.CheckBox();
this.boundColumnEditor = new BoundColumnEditor();
this.buttonColumnEditor = new ButtonColumnEditor();
this.hyperLinkColumnEditor = new HyperLinkColumnEditor();
this.editCommandColumnEditor = new EditCommandColumnEditor();
this.templatizeLink = new LinkLabel();
System.Drawing.Image image = new Bitmap(base.GetType(), "ColumnNodes.bmp");
ImageList list = new ImageList {
TransparentColor = Color.Magenta
};
list.Images.AddStrip(image);
this.autoColumnCheck.SetBounds(4, 4, 400, 0x10);
this.autoColumnCheck.Text = System.Design.SR.GetString("DGCol_AutoGen");
this.autoColumnCheck.TabIndex = 0;
this.autoColumnCheck.TextAlign = ContentAlignment.MiddleLeft;
this.autoColumnCheck.FlatStyle = FlatStyle.System;
this.autoColumnCheck.CheckedChanged += new EventHandler(this.OnCheckChangedAutoColumn);
this.autoColumnCheck.Name = "AutoColumnCheckBox";
label.SetBounds(4, 0x18, 0x1af, 14);
label.Text = System.Design.SR.GetString("DGCol_ColListGroup");
label.TabStop = false;
label.TabIndex = 1;
label.Name = "ColumnListGroup";
label2.SetBounds(12, 40, 0xb8, 0x10);
label2.Text = System.Design.SR.GetString("DGCol_AvailableCols");
label2.TabStop = false;
label2.TabIndex = 2;
label2.Name = "AvailableColumnsLabel";
this.availableColumnsTree.SetBounds(12, 0x3a, 170, 0x58);
this.availableColumnsTree.ImageList = list;
this.availableColumnsTree.Indent = 5;
this.availableColumnsTree.HideSelection = false;
this.availableColumnsTree.TabIndex = 3;
this.availableColumnsTree.AfterSelect += new TreeViewEventHandler(this.OnSelChangedAvailableColumns);
this.availableColumnsTree.Name = "AvailableColumnsTree";
this.addColumnButton.SetBounds(0xbb, 0x52, 0x1f, 0x18);
this.addColumnButton.Text = ">";
this.addColumnButton.TabIndex = 4;
this.addColumnButton.FlatStyle = FlatStyle.System;
this.addColumnButton.Click += new EventHandler(this.OnClickAddColumn);
this.addColumnButton.Name = "AddColumnButton";
this.addColumnButton.AccessibleName = System.Design.SR.GetString("DGCol_AddColButtonDesc");
label3.SetBounds(0xe2, 40, 200, 14);
label3.Text = System.Design.SR.GetString("DGCol_SelectedCols");
label3.TabStop = false;
label3.TabIndex = 5;
label3.Name = "SelectedColumnsLabel";
ColumnHeader header = new ColumnHeader {
Width = 0xb0
};
this.selColumnsList.SetBounds(0xde, 0x3a, 180, 0x58);
this.selColumnsList.Columns.Add(header);
this.selColumnsList.SmallImageList = list;
this.selColumnsList.View = System.Windows.Forms.View.Details;
this.selColumnsList.HeaderStyle = ColumnHeaderStyle.None;
this.selColumnsList.LabelWrap = false;
this.selColumnsList.HideSelection = false;
this.selColumnsList.MultiSelect = false;
this.selColumnsList.TabIndex = 6;
this.selColumnsList.SelectedIndexChanged += new EventHandler(this.OnSelIndexChangedSelColumnsList);
this.selColumnsList.KeyDown += new KeyEventHandler(this.OnSelColumnsListKeyDown);
this.selColumnsList.Name = "SelectedColumnsList";
this.moveColumnUpButton.SetBounds(0x196, 0x3a, 0x1c, 0x1b);
this.moveColumnUpButton.TabIndex = 7;
Bitmap bitmap = new Icon(base.GetType(), "SortUp.ico").ToBitmap();
bitmap.MakeTransparent();
this.moveColumnUpButton.Image = bitmap;
this.moveColumnUpButton.Click += new EventHandler(this.OnClickMoveColumnUp);
this.moveColumnUpButton.Name = "MoveColumnUpButton";
this.moveColumnUpButton.AccessibleName = System.Design.SR.GetString("DGCol_MoveColumnUpButtonDesc");
this.moveColumnDownButton.SetBounds(0x196, 0x58, 0x1c, 0x1b);
this.moveColumnDownButton.TabIndex = 8;
Bitmap bitmap2 = new Icon(base.GetType(), "SortDown.ico").ToBitmap();
bitmap2.MakeTransparent();
this.moveColumnDownButton.Image = bitmap2;
this.moveColumnDownButton.Click += new EventHandler(this.OnClickMoveColumnDown);
this.moveColumnDownButton.Name = "MoveColumnDownButton";
this.moveColumnDownButton.AccessibleName = System.Design.SR.GetString("DGCol_MoveColumnDownButtonDesc");
//.........这里部分代码省略.........
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:101,代码来源:DataGridColumnsPage.cs本文标签属性:
示例:示例志愿表
代码:代码是什么
Icon:iconfont
MakeTransparent:MakeTransparent