private void InitializePaintValues(TwitShot.API.TwitPic tp) { this.TP = tp; tssSize.Text = String.Format("{0}x{1}", this.pbCanvas.Image.Width, this.pbCanvas.Image.Height); color = Color.Black; g = this.CreateGraphics(); foreach (Color col in colores) { tsColores.Items.Add(col.ToString(), GenImgColor(col), new System.EventHandler(Color_MouseClick)); } }
public frmImgEditor(TwitShot.API.TwitPic tp) { InitializeComponent(); fn.ScreenShot(); this.pbCanvas.Image = fn.Image; InitializePaintValues(tp); }
/// <summary> /// Constructor /// </summary> /// <param name="tp">Objeto TwitpicAPI</param> public frmMsg(TwitShot.API.TwitPic tp) { this.Icon = global::TwitShot.Properties.Resources.twitshot; fnc = new TwitShot.API.App(); InitializeComponent(); this.pbImagen.Dock = DockStyle.Fill; tsslLink.Text = Properties.Settings.Default.TwitPicPhotos + tp.Username; TP = tp; CapturaPantalla(); this.ContadorCaracteres(); this.DialogResult = DialogResult.No; this.Precos_Sending = true; foreach (String item in WebCamObj.CaptureDevices) { tsddbWebCam.DropDownItems.Add(item, tsddbWebCam.Image, ChangeWebCamSource); } if (tsddbWebCam.DropDownItems.Count == 0) { tsddbWebCam.Enabled = false; } foreach (string item in Simbolos) { tssbSimbolos.DropDownItems.Add(item, null, ClickSimbolo); } }
public frmImgEditor(TwitShot.API.TwitPic tp, Image img) { InitializeComponent(); this.pbCanvas.Image = img; InitializePaintValues(tp); }
/// <summary> /// Constructor /// </summary> /// <param name="tp">Objeto TwitpicAPI</param> /// <param name="captura">Imagen que se va a enviar</param> public frmMsg(TwitShot.API.TwitPic tp, Image captura) { this.Icon = global::TwitShot.Properties.Resources.twitshot; fnc = new TwitShot.API.App(); InitializeComponent(); this.pbImagen.Dock = DockStyle.Fill; tsslLink.Text = Properties.Settings.Default.TwitPicPhotos + tp.Username; TP = tp; this.Precos_Sending = true; pbImagen.Image = captura; }