On Sat, 20 Jul 2013, Beno?t Minisini wrote:
> Le 14/07/2013 18:46, Tobias Boege a ?crit :
> > Hi,
> >
> > I want to paint richtext which is:
> >
> > a) fading in a RadialGradient (black towards transparency) and
> > b) centered in a rectangle.
> >
> > I can achieve a) when using Paint.RichText() fo
Le 14/07/2013 18:46, Tobias Boege a écrit :
> Hi,
>
> I want to paint richtext which is:
>
> a) fading in a RadialGradient (black towards transparency) and
> b) centered in a rectangle.
>
> I can achieve a) when using Paint.RichText() followed by Paint.Fill(). But
> with this code, the text is not
On Wed, 17 Jul 2013, Fabien Bodard wrote:
> In fact i fnt know what you want to achieve. So I've just trying to
> understand and then make it in a good way.
>
What I want is to draw a box and richtext which is centered in that box. The
whole picture shall fade from black to transparency in a Radi
In fact i fnt know what you want to achieve. So I've just trying to
understand and then make it in a good way.
Centering is different between draw and paint
Then you can't center a richtext vertically. This make sens when wrap is
active.
And you have give a bad zone for centering.
My way is not
On Tue, 16 Jul 2013, Fabien Bodard wrote:
> Public Sub dwgDrawRichText_Draw()
>
> Dim hExtent As PaintExtents
>
>
>
> Paint.Text("Align.Center OK.", 0, 0, Paint.Width, Paint.Height,
> Align.Center)
> hExtent = Paint.PathExtents
> Paint.Brush = Paint.RadialGradient(hExtent.X, hExtent.Y,
Public Sub dwgDrawRichText_Draw()
Dim hExtent As PaintExtents
Paint.Text("Align.Center OK.", 0, 0, Paint.Width, Paint.Height,
Align.Center)
hExtent = Paint.PathExtents
Paint.Brush = Paint.RadialGradient(hExtent.X, hExtent.Y,
Max(hExtent.Width, hExtent.Height), hExtent.X + hExtent.Width
Hi,
I want to paint richtext which is:
a) fading in a RadialGradient (black towards transparency) and
b) centered in a rectangle.
I can achieve a) when using Paint.RichText() followed by Paint.Fill(). But
with this code, the text is not centered (although I specified Align.Center
as a parameter