Граф коммитов

52 Коммитов

Автор SHA1 Сообщение Дата
Sergio Pedri a8fec6c69a Merged PR 24469: Port ICanvasImageInterop features and other new APIs from UWP branch
This PR ports all the `ICanvasImageInterop` features and other new APIs from the UWP branch to the WASDK branch. The original PRs into the UWP branch are mostly unchanged, minus some tweaks here and there mostly around marshalling and some project file adjustments to make things work.

Included cherry-picked PRs:
- !23226
- !23817
- !23654
- !23663
- !24053
- !23861
2023-03-10 11:08:34 +00:00
Kevin Gallahan 0bcf73710c
Fix broken links 2022-04-11 09:20:50 -04:00
Ian Blaauw 1423fc5aae Merged PR 16895: Update Win2D to Reunion 1.0.0-experimental1
Updates all the package references to upgrade Reunion -> WindowsAppSdk 1.0 experimental.

Some of the tests needed fixes because WindowsAppSdk added a namespace called Microsoft.Windows. Because of the way the tests are using namespaces, all their references to Windows.UI.Foo auto-resolved to Microsoft.Windows.UI.Foo which breaks.
2021-08-27 22:59:47 +00:00
Miles Cohen b14bfa1ad4 Fix the implementation of CanvasBitmap to properly inherit from the DependencyObject runtime class. 2021-05-07 09:35:06 -07:00
Geoffrey Trousdale 6fe65141af Removed CoreWindow reference from readme.md until UWP is fully supported on ProjectReunion 2021-04-01 16:54:11 -07:00
Geoffrey Trousdale ce27b54856 Updated Changelog and Readme for WinUI3 release 2021-04-01 10:46:03 -07:00
Geoffrey Trousdale 394309c7cc Updated Win2D to ProjectReunion.0.5.0
- .Net5 projections added
 - Updated to reflect WinUI3 changes
 - Samples will now live in the Win2D-samples repo
 - CanvasAnimatedControl and CanvasBitmap not yet supported
2021-04-01 09:38:43 -07:00
Shawn Hargreaves 97b9bc4ee5 Clarify Visual Studio version requirement in the readme 2019-09-06 16:15:18 -07:00
Alexandre Zollinger Chohfi e7c0040e82 Fix build with Visual Studio 2019 (with tests) (#721)
* Use latest installed Windows SDK version

* Use VS2019 (v142) C++ toolchain

* Use UniversalApiContract version in 18362 SDK

* Fix build with VS2019 compiler

* Fix Win2DValidatePlatformVersion when the version is 10.0

In later versions of Visual Studio, this means "the highest
version out of whatever platform SDKs are installed".

* Add VS2019 support to Win2D.proj

* Use explicit SDK version

* Use PlatformToolset from Win2D.Cpp.props

* Update version in solution file header

* Port ShaderCompiler fixes from xaml_islands branch

* Re-add explicit PlatformToolset

* Update code generator to match manual changes

* Update README

* Update build.cmd

* Update TargetPlatformVersion in sample projects

* Silence deprecation warning/error

* Fix double-definition build error

* Fix ambiguous-definition errors

* Tests running on VS 2019.
2019-09-06 14:11:02 -07:00
Berrysoft 61159ccfa0 Update README.md for C++/WinRT (#662)
C++/WinRT is a recommended replacement for C++/CX, and can get use of Win2D without difficulty.
2018-12-28 14:54:48 -08:00
Shawn Hargreaves 255bc6ca9f Prep for retiring the Win2D team blog
We are consolidating all support and customer communication for this project onto GitHub, so merging old information from the blog into the main git repository.
2018-12-10 19:32:53 +00:00
Shawn Hargreaves ed41d9cdd0 Update to SDK 17134 (April 2018 Update) 2018-04-30 12:21:03 -07:00
Shawn Hargreaves ad916aaf10 Update Visual Studio and SDK version mentions in docs 2018-04-17 14:39:20 -07:00
Shawn Hargreaves 3aa3be812f Remove 8.1 support: update docs and readme 2018-02-23 15:25:13 -08:00
Claire Andrews 0c07456be8 Merged PR 100: Update Win2D to support VS 2017 2017-05-19 19:50:08 +00:00
Shawn Hargreaves 3a84f9a700 Merge branch 'rs1' 2016-08-08 12:25:07 -07:00
Shawn Hargreaves 4d38dda824 Include C++/CX code snippets in the readme and doc introduction page 2016-08-05 17:06:15 -07:00
Shawn Hargreaves 927b3d269f Switch Win2D UAP builds from Windows SDK 14346 to 14393 (which is the final Win10 Anniversary Update SDK) 2016-08-04 12:49:51 -07:00
Nukepayload2 786bab423f Added VB to the Introduction (#401)
* added vb

* Added code example for Visual Basic

* Inserted VB code example into documention

Inserted VB code example into documention\introduction. #401
2016-08-03 10:45:15 -07:00
Shawn Hargreaves 1b05b4d983 Add Microsoft Open Source Code of Conduct to readme 2016-06-22 12:54:18 -07:00
Shawn Hargreaves 197f51d167 Move features list from github wiki into the main Win2D docs, and update backlog links to point at github issues rather than wiki 2016-01-29 18:08:15 -08:00
Shawn Hargreaves 976e7a4ba9 Doc updates for VS 2015 Update 1 and Win10 November Update 2015-11-30 16:33:50 -08:00
Shawn Hargreaves 21663ee806 Update Example Gallery Store links 2015-07-30 16:03:35 -07:00
Shawn Hargreaves e682df1fc4 Update NuGet links in the readme and doc intro page 2015-07-24 17:37:08 -07:00
Damyan Pepper e82a7941a0 Update documentation for new VS2013 Update 5 and VS2015 requirements 2015-07-24 16:27:03 -07:00
Shawn Hargreaves 0fd4f810be Change license from Apache 2.0 to MIT - manually update files that include handwritten license text 2015-07-06 21:37:39 -07:00
Shawn Hargreaves 1034540cc2 Fix readme .md formatting so it displays correctly on github 2015-05-27 11:08:57 -07:00
Shawn Hargreaves fe89b21be6 Update sample code links to point to the new standalone samples repository 2015-05-26 21:17:32 -07:00
Shawn Hargreaves 9681436a37 Use correct "Universal Windows Platform" terminology 2015-05-11 17:07:18 -07:00
Shawn Hargreaves 9d96bae7d8 Update the doc intro page 'Getting set up' section to cover UAP 2015-04-17 12:58:35 -07:00
Shawn Hargreaves 5a56c8f8ed Better organized links section in the readme and doc intro page
Removed the "work in progress" verbiage, which no longer applies now we're
stabilizing for Build.

Organized what was becoming a wall of too many links into sections "Where to
get it", "How to use it", and "More info".

Added a source code link to README.md, so people with clones of the source can
always find their way back to its origin.

Made the links to Example Gallery more visible.

Added an explicit "Report a bug or ask a question" link, as several customers
recently were unsure where to do that.
2015-04-17 10:30:14 -07:00
Damyan Pepper 56fc8e549f Update docs now that no special UAP workarounds are required 2015-04-16 14:25:30 -07:00
Damyan Pepper a8e257593b Win2D nuget package now supports UAP by default
Alternative, Win2D-NoUAP, package can be built on machines that don't have Win10 SDK installed.

build.cmd does the right thing by default.  "nouap" parameter can force building the nouap package.
2015-04-14 14:09:56 -07:00
Shawn Hargreaves ebf68b1424 Update a couple of namespace references in the docs 2015-04-13 09:53:42 -07:00
Damyan Pepper 71d0093174 NuGet packages that support UAP can now be built
Attempting to use a nuget package that doesn't have support for UAP will now result in a human-readable build error.
2015-04-03 15:14:21 -07:00
Shawn Hargreaves 636f2d2e67 Merge branch 'master' into uap
Conflicts:
	.gitignore
	build/Win2D.cpp.props
	tests/ExampleGallery/Shared/ShapesExample.xaml.cs
	winrt/lib/drawing/CanvasSwapChain.abi.idl
	winrt/test.internal/graphics/CanvasSwapChainUnitTests.cpp
2015-03-20 15:20:41 -07:00
Shawn Hargreaves 4d634fcdfc ExampleGallery includes a link back to its source code, for the benefit of people who download it in binary form 2015-03-19 14:29:30 -07:00
Shawn Hargreaves 76bf22e033 Docs and readme link to published Example Gallery app 2015-03-19 00:34:51 -07:00
Damyan Pepper e05461939c Windows 10 UAP bringup
- add UAP versions of projects

- explicitly list TargetPlatformIdentifier in all projects (makes it easier to robustly make decisions based on platform early on in build process)

- fix up code to compile on VS2015

- use the Windows versions of the Numerics and DirectX types
2015-01-27 13:28:54 -08:00
Shawn Hargreaves 701aa4e5f5 Updated readme and doc landing page to explain how to consume prebuilt NuGet packages 2014-11-17 17:27:43 -08:00
Damyan Pepper beba8c5df4 CanvasControl.ClearColor property
This gives control over the color that the CanvasControl is cleared to before the Draw event is raised.
2014-10-29 16:56:09 -07:00
Shawn Hargreaves 633bf19b86 Fix outdated comment in SimpleSample
While I was at it, I didn't like the way the ellipse looked in this "hello world" graphic, so I made it thinner and centered on the text
2014-09-25 10:29:04 -07:00
Damyan Pepper 8d3d1d062f build.cmd now generates "local" prerelease packages 2014-09-12 14:58:20 -07:00
Dan McLachlan c67c5aa618 Updated README.md and CONTRIBUTING.md
- Renamed CONTRIBUTING to CONTRIBUTING.md
- Moved directory structure info from README.md to CONTRIBUTING.md
- Updated contribution process
  - CLA submission process now automated via the Azure pull request bot
  - Detailed the contribution process including How-To for verifying changes
2014-09-07 21:28:05 -07:00
Shawn Hargreaves faf80a08d8 Draw function convenience overloads
Implementation mostly by Damyan. Finishing up, resolving of todos, tests, and docs by Shawn.

API surface changes:
- Many new draw function overloads
- Remove CanvasEllipse and CanvasRoundedRectangle structs

Additional behavioral changes:

- Fixed bug where DrawText(emptyString) would throw (WinRT doesn't
  differentiate between null and empty strings, so this accidentally
  triggered our null check)

- Calling one of the DrawText overloads that takes a text format but passing
  null format used to throw. Now it uses default format options, the same as if
  you call the simple overloads that take no format argument at all. I think
  this is a good general principle: where we have both simple and complex
  versions of an API, it's good if passing null for the extra parameters of the
  complex version can give the same behavior as the simple form.

- Reduced the default font size when no format is specified from 96 to 32. This
  simple overload will mostly be for debug text, so the output should be
  readable but not huge.
2014-09-04 11:46:26 -07:00
Shawn Hargreaves 7dd7cf10d1 Win2D project name 2014-09-04 11:46:12 -07:00
Shawn Hargreaves ce3fdde0bd WinRT IVector<T> implementation
I could not find any existing implementations that were sufficiently complete,
high quality, supported collections of runtime types as well as interfaces and
value types, and were under a suitable open source license, so had to write my
own. Hopefully this Vector.h will fill that hole for others with similar needs
in future!

Features:

- Implements IVector<T> and IIterable<T>, but not IObservableVector<T>

- T can be interface, runtime class, or value type, and is factored such that
  strings can easily be added if/when needed.

- Vectors may optionally be locked to a fixed size, in which case users can
  change their elements but not add/remove elements.

- Vectors track a dirty flag so their owner can tell when their contents
  changed. This is a lightweight internal-only mechanism rather than full
  IObservableVector implementation to avoid complications with event handlers
  causing circular refcount chains.

- By default vectors own their content data (internally using an STL
  collection) but there is also an option to wrap them around some other source
  so as to just provide a WinRT API surface on top of any other data.

- Provides an internal mechanism to get direct access to the STL container
  inside a WinRT vector, so API implementations can work directly with this
  rather than having to go through the overhead of WinRT vtable dispatch and
  exception boundaries for every get/set/iterate operation.
2014-08-27 16:21:22 -07:00
Shawn Hargreaves d67ea88daa Improve the readme
Sanded it down, varnished, sprinkled liberally with truffle oil, and added more cowbell.
2014-08-27 15:48:04 -07:00
Claire Andrews 1c98bae1fe Rename the CanvasControl events CreatingResources and Drawing, to CreateResources and Draw. 2014-08-20 16:33:39 -07:00
Shawn Hargreaves 45be383e66 Updated readme and samples
- New content for README.md
- Added CONTRIBUTING file
- Added SimpleSample app
2014-07-29 10:50:27 -07:00