线性渐变画笔 [英] LineargradientBrush

查看:95
本文介绍了线性渐变画笔的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

lineargradientBrush具有Transform属性.它是矩阵,使用它可以识别缩放,旋转和倾斜.

lineargradientBrush has Transform Property.Which is matrix ,using this we can identify scaling,rotation and skew.

我将线性渐变从Powerpoint转换为EMF.确定线性渐变的类型我使用Transform属性使用矩阵0和1值将弧度转换为度,但是某些lineargradientbrush Transform属性具有较大的值,因此度值 变成NaN,

I convert the lineargradient from powerpoint to EMF.Identifying the type of lineargradient i use Transform property to convert radian to degree using matrix 0 and 1 value,but some lineargradientbrush Transform property has large value so the degree value become NaN,

所以我无法确定线性渐变是水平还是垂直.如果您知道,请给我答复

So  i cannot identify the lineargradient is horizontal or Vertical.Please reply me if u know

Sasi.

推荐答案

你好,Sasi,

Hello Sasi,

根据您的描述,不清楚您是哪个 LineargradientBrush,据我所知,存在名称空间: LinearGradientBrush 类(System.Drawing.Drawing2D)

From your description, it is not clear about which LineargradientBrush you are uisng, as far as I know, there are namepsaces:LinearGradientBrush Class (System.Drawing.Drawing2D) and LinearGradientBrush Class (System.Windows.Media), both of them have the Transform Property and support the matrix, so please tell what project you are developing.

>>我将线性梯度从Powerpoint转换为EMF.Identification

>>I convert the lineargradient from powerpoint to EMF.Identifying

为此,如果可能的话,请向我们分享一些代码,以便我们可以知道您要做什么,目前,您的意思是将线性渐变从powerpoint转换为EMF感到困惑.

For this, if possible, please share us some code so that we can know what you are trying to do, currently, it is confused you mean about converting the lineargradient from powerpoint to EMF.Identifying.

此致.


这篇关于线性渐变画笔的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆