Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display Drawings in Image control #3378

Merged
merged 10 commits into from Jan 9, 2020
Merged

Display Drawings in Image control #3378

merged 10 commits into from Jan 9, 2020

Commits on Dec 20, 2019

  1. Added IImage interface.

    `IImage` represents a base interface for raster and vector images. `IBitmap` now implements this interface and `DrawingContext` accepts this interface in `DrawImage`.
    
    The interface defines a `Draw` method which introduces a level of indirection for drawing the image through the image itself.
    
    Renamed `IDrawingContextImpl.DrawImage` to `DrawBitmap` as this only handles drawing bitmap images. `Bitmap` now calls this method directly on the platform implementation.
    grokys committed Dec 20, 2019
    Configuration menu
    Copy the full SHA
    a8e7538 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6bd9ca8 View commit details
    Browse the repository at this point in the history
  3. Use Size not PixelSize in ImageTests.

    `Image` now bases the size of a bitmap on `IImage.Size`.
    grokys committed Dec 20, 2019
    Configuration menu
    Copy the full SHA
    11a714d View commit details
    Browse the repository at this point in the history
  4. Update ControlCatalog image page.

    To display `DrawingImage`.
    grokys committed Dec 20, 2019
    Configuration menu
    Copy the full SHA
    fd08fdc View commit details
    Browse the repository at this point in the history
  5. Sanitize image drawing API.

    - Remove opacity parameter - should push an opacity instead
    - Add a WPF-compatible overload of `DrawImage` to `DrawingContext`
    grokys committed Dec 20, 2019
    Configuration menu
    Copy the full SHA
    dbe4301 View commit details
    Browse the repository at this point in the history
  6. Invalidate DrawingImage when Drawing changed.

    And add some XML docs.
    grokys committed Dec 20, 2019
    Configuration menu
    Copy the full SHA
    37d0078 View commit details
    Browse the repository at this point in the history
  7. Make D2D backend match Skia.

    Skia doesn't support getting DPI from loaded bitmaps and always returns 96. Do the same in D2D.
    grokys committed Dec 20, 2019
    Configuration menu
    Copy the full SHA
    de31680 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    580697b View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    db76f04 View commit details
    Browse the repository at this point in the history

Commits on Jan 8, 2020

  1. Configuration menu
    Copy the full SHA
    a71b3ba View commit details
    Browse the repository at this point in the history