예제 #1
0
 // Token: 0x06001C07 RID: 7175 RVA: 0x00057E5C File Offset: 0x0005605C
 private void method_1()
 {
     if (this.stream_1 == null)
     {
         this.stream_1 = new MemoryStream();
     }
     this.stream_1.SetLength(0L);
     if (this.stream_2 == null)
     {
         this.stream_2 = new MemoryStream();
     }
     this.stream_2.SetLength(0L);
     if (this.bitmap_1 == null)
     {
         this.bitmap_1 = new Bitmap(this.bitmap_0.Width, this.bitmap_0.Height);
     }
     Class486.smethod_0(this.stream_0, this.stream_1, this.bitmap_1, new Color?(this.cSelector.SelectedColor), true, Enum14.const_3);
     this.stream_1.Position = 0L;
     this.bitmap_2          = Class486.smethod_2(this.stream_1);
     this.picSource.Image   = this.bitmap_0;
     this.picImage.Image    = this.bitmap_1;
     this.picRGB.Image      = this.bitmap_2;
     Class157.smethod_6(this.bitmap_1, this.stream_2, 100);
     this.stream_0.Position = 0L;
     this.stream_2.Position = 0L;
     this.stream_1.Position = 0L;
 }
예제 #2
0
    // Token: 0x060006C4 RID: 1732 RVA: 0x00038F88 File Offset: 0x00037188
    private static int smethod_7()
    {
        if (Class157.nullable_0 != null)
        {
            return(Class157.nullable_0.Value);
        }
        bool   flag;
        Class2 @class = Class157.smethod_6(out flag);

        Class157.nullable_0 = new int?(@class.vmethod_1());
        if (!flag)
        {
            @class.Dispose();
        }
        return(Class157.nullable_0.Value);
    }
예제 #3
0
        // Token: 0x06001FEC RID: 8172 RVA: 0x00069EE8 File Offset: 0x000680E8
        private void SaveScreenshotBtn_Click(object sender, EventArgs e)
        {
            if (this.bitmap_0 == null)
            {
                DialogBox.smethod_3("There appears to have been an error and a screenshot was not taken.", "Error Accessing Screenshot");
                return;
            }
            if (this.saveFileDialog_0.ShowDialog() == DialogResult.OK)
            {
                try
                {
                    switch (this.saveFileDialog_0.FilterIndex)
                    {
                    case 1:
                        using (Stream stream = File.Open(this.saveFileDialog_0.FileName, FileMode.Create, FileAccess.Write, FileShare.None))
                        {
                            Class157.smethod_6(this.bitmap_0, stream, 100);
                            goto IL_A3;
                        }
                        break;

                    case 2:
                        break;

                    default:
                        goto IL_A3;
                    }
                    using (Stream stream2 = File.Open(this.saveFileDialog_0.FileName, FileMode.Create, FileAccess.Write, FileShare.None))
                    {
                        Class157.smethod_5(this.bitmap_0, stream2, 100);
                    }
                    IL_A3 :;
                }
                catch (Exception ex)
                {
                    DialogBox.smethod_7(ex, this.saveFileDialog_0.FileName);
                }
            }
        }