Here are the examples of the csharp api class System.Drawing.Size.Equals(object) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
20 Examples
0
1. Example
Project: OpenLiveWriter
Source File: CommandBarButtonLightweightControl.cs
Source File: CommandBarButtonLightweightControl.cs
public bool NeedsLayout(Command command, Size imageSize) { return style != command.CommandBarButtonStyle || on != command.On || visibleOnCommandBar != command.VisibleOnCommandBar || command.Text != text || !this.imageSize.Equals(imageSize); }
0
2. Example
Project: OpenLiveWriter
Source File: HtmlImageResizeDecorator.cs
Source File: HtmlImageResizeDecorator.cs
public bool BaseSizeChanged(Bitmap image) { Size? baseSize = BaseSize; if (baseSize == null) return true; return !baseSize.Equals(image.Size); }
0
3. Example
Project: OpenLiveWriter
Source File: HtmlImageTargetDecorator.cs
Source File: HtmlImageTargetDecorator.cs
public bool BaseSizeChanged(Bitmap image) { Size? baseSize = BaseSize; if (baseSize == null) return true; return !baseSize.Equals(image.Size); }
0
4. Example
Project: SharpSapRfc
Source File: ImageAssert.cs
Source File: ImageAssert.cs
private static bool AreImageEquals(Bitmap bmp1, Bitmap bmp2) { if (!bmp1.Size.Equals(bmp2.Size)) { return false; } for (int x = 0; x < bmp1.Width; ++x) { for (int y = 0; y < bmp1.Height; ++y) { if (bmp1.GetPixel(x, y) != bmp2.GetPixel(x, y)) { return false; } } } return true; }
0
5. Example
Project: PlayoutAutomation
Source File: VideoFormatDescription.cs
Source File: VideoFormatDescription.cs
public static VideoFormatDescription Match(Size imageSize, RationalNumber frameRate, RationalNumber sar, bool interlaced) { var result = Descriptions.Values.FirstOrDefault((v) => v.ImageSize.Equals(imageSize) && (v.FrameRate.Equals(frameRate) || frameRate.Equals(RationalNumber.Zero)) && (v.SAR.Equals(sar) || sar.Equals(RationalNumber.Zero)) && v.Interlaced == interlaced); return result != null ? result : new VideoFormatDescription(imageSize, frameRate, sar, interlaced); }
0
6. Example
Project: OpenLiveWriter
Source File: HtmlImageResizeDecorator.cs
Source File: HtmlImageResizeDecorator.cs
public void SetImageSize(Size size, ImageSizeName? sizeName) { IHTMLImgElement i/n ..... /n //View Source file for more details /n }
0
7. Example
Project: winforms-modernui
Source File: ExpandAnimation.cs
Source File: ExpandAnimation.cs
public void Start(Control control, Size targetSize, TransitionType transitionType, int duration) { base.Start(control, transitionType, duration, delegate { int width = DoExpandAnimation(control.Width, targetSize.Width); int height = DoExpandAnimation(control.Height, targetSize.Height); control.Size = new Size(width, height); }, delegate { return (control.Size.Equals(targetSize)); }); }
0
8. Example
Project: PokerMuck
Source File: VisualRecognitionMap.cs
Source File: VisualRecognitionMap.cs
public void AdjustToSize(Size newDesiredSize) { if (!this.desiredMapSize.Equals(newDesiredSize)) { this.desiredMapSize = newDesiredSize; ComputeForDesiredMapSize(desiredMapSize); } }
0
9. Example
Project: Mist
Source File: ExpandAnimation.cs
Source File: ExpandAnimation.cs
public void Start(Control control, Size targetSize, TransitionType transitionType, int duration) { base.Start(control, transitionType, duration, delegate { int width = DoExpandAnimation(control.Width, targetSize.Width); int height = DoExpandAnimation(control.Height, targetSize.Height); control.Size = new Size(width, height); }, delegate { return (control.Size.Equals(targetSize)); }); }
0
10. Example
Project: winauth
Source File: ExpandAnimation.cs
Source File: ExpandAnimation.cs
public void Start(Control control, Size targetSize, TransitionType transitionType, int duration) { base.Start(control, transitionType, duration, delegate { int width = DoExpandAnimation(control.Width, targetSize.Width); int height = DoExpandAnimation(control.Height, targetSize.Height); control.Size = new Size(width, height); }, delegate { return (control.Size.Equals(targetSize)); }); }
0
11. Example
Project: xenadmin
Source File: XSVNCScreen.cs
Source File: XSVNCScreen.cs
public void UpdateRDPResolution(bool fullscreen = false) { if (rdpClient == null || oldSize.Equals(this.Size)) return; //no offsets in fullscreen mode because there is no need to accomodate focus border if (fullscreen) rdpClient.UpdateDisplay(this.Size.Width, this.Size.Height, new Point(0,0)); else rdpClient.UpdateDisplay(this.Size.Width - CONSOLE_SIZE_OFFSET, this.Size.Height - CONSOLE_SIZE_OFFSET, new Point(3,3)); oldSize = new Size(this.Size.Width, this.Size.Height); Refresh(); }
0
12. Example
Project: ClearCanvas
Source File: ThumbnailLoader.cs
Source File: ThumbnailLoader.cs
public bool Equals(LoadThumbnailRequest other) { return other != null && Equals(other.Descriptor, Descriptor) && other.Size.Equals(Size); }
0
13. Example
Project: Krypton
Source File: KryptonDataGridView.cs
Source File: KryptonDataGridView.cs
protected override void PaintBackground(Graphics graphics, /n ..... /n //View Source file for more details /n }
0
14. Example
Project: Krypton
Source File: VisualPanel.cs
Source File: VisualPanel.cs
protected override void OnPaint(PaintEventArgs e) { // Cannot process a message for a disposed control if (!IsDisposed) { // Do we have a manager to use for painting? if (ViewManager != null) { // If the layout is dirty, or the size of the control has changed // without a layout being performed, then perform a layout now if (_layoutDirty && (!Size.Equals(_lastLayoutSize))) PerformLayout(); // Draw the background as transparent, by drawing parent PaintTransparentBackground(e); // Ask the view to repaint the visual structure ViewManager.Paint(_renderer, e); // Request for a refresh has been serviced _refresh = false; _refreshAll = false; } } }
0
15. Example
Project: TileIconifier
Source File: ImageUtils.cs
Source File: ImageUtils.cs
public static bool BitmapsAreEqual(Bitmap image1, Bitmap image2) { try { if (ReferenceEquals(image1, image2)) return true; if (image1 == null || image2 == null) return false; if (!image1.Size.Equals(image2.Size)) { return false; } for (var x = 0; x < image1.Width; ++x) { for (var y = 0; y < image1.Height; ++y) { if (image1.GetPixel(x, y) != image2.GetPixel(x, y)) { return false; } } } } catch { return false; } return true; }
0
16. Example
Project: CommunityServer
Source File: UserPhotoManager.cs
Source File: UserPhotoManager.cs
public bool Equals(ResizeWorkerItem other) { if (ReferenceEquals(null, other)) return false; if (ReferenceEquals(this, other)) return true; return other.ModuleId.Equals(ModuleId) && other.UserId.Equals(UserId) && other.MaxFileSize == MaxFileSize && other.Size.Equals(Size); }
0
17. Example
Project: OpenLiveWriter
Source File: GraphicsHelper.cs
Source File: GraphicsHelper.cs
public static IDisposable Offset(Graphics g, Rectangle dest, Rectangle src) { Debug.Assert(dest.Size.Equals(src.Size), "Can't offset with rectangles of unequal sizes"); return Offset(g, dest.Location.X - src.Location.X, dest.Location.Y - src.Location.Y); }
0
18. Example
Project: PokerMuck
Source File: ScreenshotTaker.cs
Source File: ScreenshotTaker.cs
public Bitmap Take(Window window, bool clientOnly, Size size, Mode mode) { // We/n ..... /n //View Source file for more details /n }
0
19. Example
Project: PokerMuck
Source File: VisualRecognitionMap.cs
Source File: VisualRecognitionMap.cs
private void ComputeForDesiredMapSize(Size desiredMapSize) { Bitmap mapImage = new Bitmap(mapLocation); if (!desiredMapSize.Equals(Size.Empty)) { Bitmap oldMapImage = mapImage; mapImage = ResizeMap(oldMapImage, desiredMapSize); oldMapImage.Dispose(); } AnaliseMap(mapImage); SameSizeCheck(colorMap.GetSameSizeActions(), 1); mapImage.Dispose(); }
0
20. Example
Project: ImageGlass
Source File: ImageComparator.cs
Source File: ImageComparator.cs
private bool CompareBitmaps(Image left, Image right) { if (object.Equals(left, r/n ..... /n //View Source file for more details /n }