Dan Walmsley
a856b210fb
dont implement CreateScaleBitmap on Direct2d.
6 years ago
Dan Walmsley
238ba26daa
use decoder frame directly to load at scaled size.
6 years ago
Dan Walmsley
6bb873d5bb
implement bitmap resize apis for direct2d
6 years ago
Dan Walmsley
ac65b4e717
Add documentation.
6 years ago
Dan Walmsley
0889318c57
Add createscaled bitmap
6 years ago
Dan Walmsley
663b91a8bf
Implement ability to decode a bitmap at a specified width or height.
6 years ago
Dan Walmsley
3995b8abb9
use default arguments for bitmap decoder options in platform backends.
6 years ago
Dan Walmsley
ba75735848
decode bitmaps at a specified size.
6 years ago
Nikita Tsukanov
bea8b676a2
Support for multiple box-shadows
6 years ago
Nikita Tsukanov
d0b041095d
Inset box-shadow
6 years ago
Nikita Tsukanov
20f6f886f9
box-shadow support
6 years ago
Benedikt Schroeder
0b1b3914b3
More text rendering improvements
6 years ago
Steven Kirk
4d01dacd77
Remove copyright headers.
Some of our files had them, some didn't. They serve no purpose legally so best to remove the ceremony.
7 years ago
Benedikt Schroeder
de93e8e969
Full Unicode support for TextBlock
7 years ago
Steven Kirk
de31680253
Make D2D backend match Skia.
Skia doesn't support getting DPI from loaded bitmaps and always returns 96. Do the same in D2D.
7 years ago
Steven Kirk
a8e75384b7
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.
7 years ago
Benedikt Schroeder
ab5e062deb
Add GlyphRun support
7 years ago
Benedikt Schroeder
c57bf0a1fe
Fix FormattedTextImpl with fallbacks
7 years ago
Benedikt Schroeder
ca4523f4f4
Use the right parameter for isRounded calculation
7 years ago
Benedikt Schroeder
1b0221e224
Reworked the font manager to better manage resoures and also work properly with the application lifetime
7 years ago
Benedikt Schroeder
527d8376d7
Combine draw and fill rectangle drawing operation
7 years ago
Dan Walmsley
5b3e2320a8
remove unit tests, skia and direct2d behave differently and making them match is beyond the scope of this bug fix.
7 years ago
Dan Walmsley
86d21f27a7
fix empty text hit test. direct2d
7 years ago
Benedikt Schroeder
872cef0176
Introduce abstract font manager
7 years ago
Benedikt Schroeder
9d105c7dbb
Introduce a static FontManager that uses a platform implementation under the hood.
7 years ago
Benedikt Schroeder
83bfb8ec70
Initial implementation of a font manager
7 years ago
Dariusz Komosinski
5814bd7163
Remove direct logging functions.
7 years ago
José Pedro
19f9729e86
Reduced array allocations.
7 years ago
Steven Kirk
ec45084e6a
Make Pen mutable.
And add `IPen` interface and `ImmutablePen` class.
7 years ago
Nikita Tsukanov
dbc284d96e
Set PackageId for github's dependency graph to work
7 years ago
Benedikt Schroeder
4413de463e
Remove unsupported line caps
8 years ago
Dariusz Komosinski
1b869ff27b
Get rid of not needed interfaces.
8 years ago
Dariusz Komosiński
8534769435
Platform geometry implementations for D2D and Skia.
8 years ago
Nikita Tsukanov
18d59ff649
Custom draw operations, exposed SkCanvas and reduced Skia api visibility
8 years ago
Steven Kirk
e7e57d0e91
Fix text rendering where TextAlignment != Left.
The renderer was using the wrong bounds for text where `TextAlignment != Left` as seen in #1625 . To fix this, change `FormattedTextImpl.Size` to `Bounds`, which returns a rect that takes into account the text alignment and similarly change `FormattedText.Measure` to return a `Rect` instead of a `Size.
Fixes #1625 .
8 years ago
Steven Kirk
009b9a1ae7
Make PixelSize accept a scaling factor for conversions.
For conversions between `PixelSize` and `Size` use a scaling factor by default; rename the DPI overloads to have a `WithDpi` suffix.
8 years ago
Jeffrey Ye
2ed745d493
#2222 Get all fonts in the system
8 years ago
Steven Kirk
41f201bec8
Fix grip visualbrush tests.
8 years ago
Steven Kirk
f82ee356bd
Added debugging util to save D2D render targets.
8 years ago
Steven Kirk
eecd3555f9
Fix DPI in ImageBrushImpl.
And add expected output for tests. D2D now passes, skia still renders incorrectly.
8 years ago
Dan Walmsley
1ced34f15f
fix tilebrush scaling for direct2d.
8 years ago
Jeremy Koritzinsky
321bd15664
Merge desktop runtime support libraries. Fixes #1899 .
8 years ago
Jeremy Koritzinsky
5a9e41364b
Convert project references to reference aggregate Avalonia.csproj
8 years ago
Nikita Tsukanov
c18001b69d
Introduce Version for writable bitmaps
8 years ago
Benedikt Schroeder
476a9800c0
Inital
8 years ago
Steven Kirk
a0e8dca6e9
Use PixelSize for device-dependent sizes.
8 years ago
Benedikt Schroeder
e625f03c16
Use ID2D1Device instead of ID2D1Device1 to keep wi
8 years ago
Benedikt Schroeder
50f15b1154
Namespace fix
8 years ago
Benedikt Schroeder
1bf4954334
Downgrade SharpDX to 4.0.1
8 years ago
Benedikt Schroeder
2a64f133d5
SharpDX update to current version
8 years ago