Lluis Sanchez
31083e058e
Fixed rendering of 9-patch images in retina resolution
2013-12-02 10:16:17 +01:00
Lluis Sanchez
2b7a78e58e
Added unit tests for 9-patch images
...
Also fixed some rendering issues in gtk.
2013-12-01 14:16:49 +01:00
Lluis Sanchez
d60200bd00
NinePatchImage: Improve detection of stretchable areas
2013-11-29 14:29:25 +01:00
Lluis Sanchez
5b1f32a80e
Add support for 9-patch images
2013-11-28 20:46:53 +01:00
Lluis Sanchez
d517fc7c25
Added some null ref checks
...
Throw proper exceptions if trying to use drawing api before
initializing XWT.
2013-11-06 18:31:57 +01:00
Lluis Sanchez
2ae5274589
Fix bug in TextLayout.Markup
2013-10-17 19:09:21 +02:00
Lluis Sanchez
846bc66e47
Fix bug in Color.WithIncreasedContrast
2013-10-03 10:45:38 +02:00
Lluis Sanchez
be95e972f7
Fixed some bitmap conversion issues
...
Don't allow specifying an arbitrary width/height ratio when converting
a vector image to a bitmap. Now a scale factor has to be provided.
2013-09-18 10:53:07 +02:00
Lluis Sanchez
88b48c04ae
Improve support for bitmaps
...
The size of a bitmaps in physical pixels may be different from the size
in 'logical' pixels.
2013-09-09 17:40:02 +02:00
hwthomas
948ce72c7e
Fix spelling in TextLayout API
2013-08-29 14:55:18 +01:00
Lluis Sanchez
17b217ba27
Merge pull request #236 from hwthomas/master
...
Change default Matrix transform order to Prepend
2013-08-27 10:11:45 -07:00
Alex Corrado
8b44ce86f9
[Xwt.Drawing] Make RoundRectangle method draw a squared off rectangle if radius <= 0
2013-08-26 15:30:21 -05:00
Lluis Sanchez
88983c2dc3
Use Uri as data type for markup links
2013-08-24 15:55:01 +02:00
Lluis Sanchez
aa26d53b21
Added overload for Color.WithIncreasedContrast
2013-08-24 01:01:54 +02:00
Lluis Sanchez
f4addf5bed
Added RoundRectangle drawing method
2013-08-24 00:44:24 +02:00
hywel
6d3f588cc6
Change Matrix transform order to Prepend
...
and fix up Samples and Tests accordingly
2013-07-31 16:18:21 +01:00
Lluis Sanchez
3d85c6f410
Added new overload for Image.FromResource
2013-07-31 00:53:19 +02:00
hwthomas
c98579a302
[Drawing API] Add ModifyCTM (Matrix m) to Xwt.Drawing.Context API
...
This provides the link between the Matrix transforms facilities and Drawing.Contexts
An sample of using this for specialised transforms has been added to DrawingTransforms.cs
and unit tests hve been aded to Testing/Tests/TransformTests.cs
2013-07-28 15:21:12 +01:00
Lluis Sanchez
f83fa5e8c1
Add Width and Height properties to Image
2013-07-04 15:47:04 +02:00
Lluis Sanchez
2c96e4c180
Add support for multi-size icons
...
And added support for that in the GTK backend.
2013-07-04 12:51:55 +02:00
Lluis Sanchez
3cf1b0031e
Improve disposal of resources
...
Backends can now opt-in to automatic disposal of resources in the
UI thread.
2013-06-25 13:51:10 +02:00
Lluis Sanchez
4ff98a697b
Improve GetHashCode implementations
...
Fixes issue #217
2013-06-03 11:33:25 +02:00
Lluis Sanchez
f2e61e2037
Fix some issues in custom widget backend. Fix typo.
2013-05-24 12:16:41 +02:00
Lluis Sanchez
2e23ed12fb
Added docs to the Image class
2013-05-16 12:06:22 +02:00
Lluis Sanchez
41b7233b3d
Improve image size handling
...
The Size property now returns the value of GetDefaultSize
if no size is explicitly set.
2013-05-15 16:15:34 +02:00
Lluis Sanchez
9c9a108a77
Add Markup property to TextLayout
2013-05-09 12:09:28 +02:00
Lluis Sanchez
3caf5a7ffe
Ongoing work to support formatted text
...
Remove FontSizeTextAttribute for now, it is not easy
to support in all platforms.
Underline and strikethrough formats can be
explicitly disabled now.
2013-05-09 11:28:01 +02:00
Lluis Sanchez
5a5e4d8c1c
Seal some classes
2013-05-09 11:28:01 +02:00
Lluis Sanchez
bc9d1d5b52
Reorganize TextAttribute api
...
Moved TextAttribute subclasses to their own files.
TextLayout now uses TextAttribute to provide
format info to the backend.
2013-05-09 11:28:01 +02:00
Lluis Sanchez
cf8aba03fb
Initial work to support formatted text in Label and other widgets
2013-05-08 21:06:13 +02:00
Lluis Sanchez
93433e040e
Use invariant culture when parsing doubles
2013-05-08 12:36:28 +02:00
lytico
4e69bf7b72
matrix.rotation: handle 360 degree and relatives
2013-04-08 17:59:39 +02:00
lytico
47f9972671
correct calculation of quadrant angles
2013-04-08 17:25:17 +02:00
Lluis Sanchez
a5d4d7605d
Don't allow appending a context as a path
2013-04-05 13:19:19 +02:00
Lluis Sanchez
2fdfb2f7c7
Fix hit testing issues
...
Also added tests.
2013-04-05 13:00:40 +02:00
Lluis Sanchez
e5cc7484cd
More DrawingPath fixes
...
Allow appending a path created by using
Context.CopyPath to a regular DrawingPath.
2013-04-05 12:14:02 +02:00
Lluis Sanchez
6402eedd7c
Fix AppendPath so that it works for paths with native backends
2013-04-05 11:24:17 +02:00
Lluis Sanchez
6702c3bc38
Fix DrawingPath support
2013-04-05 10:40:41 +02:00
lytico
afdb17c997
performance: get near in transforms
2013-04-03 23:43:16 +02:00
lytico
0b5257db79
removed unnecessary private accessors
2013-04-03 22:07:30 +02:00
lytico
e12bb89c3b
avoid unnecessary creation of helper-matrix
2013-04-03 22:01:53 +02:00
lytico
741085effa
rotate fixed to run MatrixTests.Rotate (offset needs to be changed too)
2013-04-03 21:57:39 +02:00
Lluis Sanchez
8f330eaf14
Fix some Font issues
...
Fixed defaults for serif and sans-serif fonts (they were
reversed). Font lookups are now case insensitive.
2013-04-03 17:57:52 +02:00
Lluis Sanchez
878cd223ac
Add some tests for the Color class
2013-04-03 13:36:24 +02:00
Lluis Sanchez
310581b5d0
Font fixes
...
Fixed methods that return the system default fonts.
Added font tests.
2013-03-28 17:39:45 +01:00
Lluis Sanchez
66ebe9ceaa
Added api for getting the system fonts
...
When using the GTK backend on windows or mac,
the native backend will also be loaded.
Also removed obsolete text layout constructor.
2013-03-28 15:24:39 +01:00
Lluis Sanchez
3864134a2d
Remove Context.Font property
...
Text font is set in TextLayout.
Added Reset method to Context. It will be used to initialize
a context to a known initial state.
2013-03-28 15:17:44 +01:00
Lluis Sanchez
651de3bdff
Fix some image conversion and font issues
...
Use the correct size when generating an image for a drag operation.
Use invariant culture when parsing font size. This value is
usually provided by the programmer, not the user, so it makes sense
to use invariant here.
Fix text layout initialization issue.
2013-03-27 18:59:13 +01:00
Lluis Sanchez
c45cb761f0
Improve text layout handling
...
TextLayout can now be created without a reference
to a canvas or context. Fixed drawing of text when
using an image builder. Added text drawing tests.
2013-03-27 16:58:28 +01:00
Lluis Sanchez
9fec1645e3
Bitmap generation fixes
2013-03-23 20:50:33 +01:00