[Gambas-user] X coordinate in Paint.DrawText works in reverse.
Ru Vuott
vuott at ...325...
Wed Nov 27 15:43:04 CET 2013
Yes, Tobias, it was .Mirror metod.
bye
vuott
--------------------------------------------
Mer 27/11/13, Tobias Boege <taboege at ...626...> ha scritto:
Oggetto: Re: [Gambas-user] X coordinate in Paint.DrawText works in reverse.
A: "mailing list for gambas users" <gambas-user at lists.sourceforge.net>
Data: Mercoledì 27 novembre 2013, 12:30
On Wed, 27 Nov 2013, Ru Vuott wrote:
> Hello,
>
> I have this code:
>
> *************************************
>
> Public Sub Button1_Click()
>
> Dim a As New Image
> Dim b As Picture
>
> ' I load a file image:
> a = a.Load("/path/of/file/image")
>
> With Paint
> .Begin(a)
> .Font.Size = 16
> .DrawText("d", 100,
20, 10, 10)
> .End
> End With
>
> a.Mirror(True, False)
>
> b = a.Picture
>
> PictureBox1.Picture = b
>
> End
>
> ***************************************
>
> I do not understand why the X coordinate in
"Paint.DrawText( )" metod works in reverse. ...if its value
is near to zero, then the letter "b" is shown at the "right"
edge of the image !
> Increasing the value of the X coordinate, the letter
approaches to the "left" edge of the image !
>
> Same problem with "Paint.DrawRichText( )" metod !
>
The a.Mirror() looks suspicious... You mirror the Image "a"
horizontally but
you don't assign the return value to anything so this
effectively does
nothing. Why did you include that code?
--
"There's an old saying: Don't change anything... ever!" --
Mr. Monk
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your
business. Most IT
organizations don't have a clear picture of how application
performance
affects their revenue. With AppDynamics, you get 100%
visibility into your
Java,.NET, & PHP application. Start your 15-day FREE
TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
Gambas-user mailing list
Gambas-user at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user
More information about the User
mailing list