public Bitmap method_7() { Bitmap bitmap2; int width = this.webBrowser_0.Width; int height = this.webBrowser_0.Height; Size size = this.webBrowser_0.Size; if (this.bool_0) { height = this.webBrowser_0.Document.Body.ScrollRectangle.Height; width = this.webBrowser_0.Document.Body.ScrollRectangle.Width; } if (width < this.int_0) { width = this.int_0; } if (height < size.Height) { height = size.Height; } this.webBrowser_0.Size = new Size(width, height); try { this.method_6(); Class17 class2 = new Class17(); Bitmap bitmap = (Bitmap)ImageHelper.ResizeImageToAFixedSize(class2.method_0(this.webBrowser_0.ActiveXInstance, new Rectangle(0, 0, width, height)), this.int_0, this.int_1, ImageHelper.ScaleMode.W); bitmap2 = bitmap; } catch (Exception exception) { throw exception; } return(bitmap2); }
public bool IsValid(Point p) { if (this.boundaries.Count == 0) { return(true); } Class17 @class = new Class17(p, new Vector3d(-1.0, 0.0, 0.0)); int num = 0; bool flag = false; for (int i = 0; i < this.boundaries.Count; i++) { Edge edge = this.boundaries[i].Edge; if (@class.method_6(edge, ref flag)) { num++; } if (flag) { break; } } if (flag) { num = this.method_16(@class.method_0()); } return(num % 2 != 0); }
public bool method_1() { int num; lock (_stream10) { var arg390 = _stream10; var arg391 = _struct660.Intptr0; int int_; _class170.method_4(int_ = _class170.method_0().Length); num = arg390.vmethod_3(arg391, int_); } if (num == 0) { return(false); } Array.Clear(_class170.method_0(), num, _class170.method_3() - num); method_4(); return(true); }
public Class158(IntPtr intptr1, int int1, GenericAudioStream stream11, object object1) { _int0 = int1; _class170 = new Class17(int1); _gchandle0 = GCHandle.Alloc(_class170.method_0(), GCHandleType.Pinned); _intptr0 = intptr1; _stream10 = stream11; _object0 = object1; _struct660 = default(Struct66); _gchandle1 = GCHandle.Alloc(_struct660); _struct660.Intptr0 = _gchandle0.AddrOfPinnedObject(); _struct660.Int0 = int1; _struct660.Int2 = 1; _gchandle2 = GCHandle.Alloc(this); _struct660.Intptr1 = (IntPtr)_gchandle2; lock (object1) { Exception4.smethod_1(Class162.waveOutPrepareHeader(intptr1, ref _struct660, Marshal.SizeOf(_struct660)), "waveOutPrepareHeader"); } }