none PIXEL calculation

Post Reply
User avatar
Jimmy
Posts: 1740
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany
Has thanked: 2 times

none PIXEL calculation

Post by Jimmy »

hi,

how to "calculate"

Code: Select all | Expand

@ 2,2 SAY
to use PIXEL Option :?:
greeting,
Jimmy
Natter
Posts: 1241
Joined: Mon May 14, 2007 9:49 am

Re: none PIXEL calculation

Post by Natter »

Is that what you mean ?

GetTextWidth(NIL, "calculate", oFont:hFont)
User avatar
Antonio Linares
Site Admin
Posts: 42529
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 77 times
Contact:

Re: none PIXEL calculation

Post by Antonio Linares »

Dear Jimmy,

@ 200, 200 SAY ... PIXEL

Not sure what you mean
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Jimmy
Posts: 1740
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany
Has thanked: 2 times

Re: none PIXEL calculation

Post by Jimmy »

hi Antonio,
Antonio Linares wrote:

Code: Select all | Expand

@ 200, 200 SAY ... PIXEL
thx for Answer

so

Code: Select all | Expand

@ 0.01, 0.01 SAY ...
are same as

Code: Select all | Expand

@ 1, 1 SAY ... PIXEL
100 : 1 that is easy
greeting,
Jimmy
User avatar
Antonio Linares
Site Admin
Posts: 42529
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 77 times
Contact:

Re: none PIXEL calculation

Post by Antonio Linares »

Dear Jimmy,

It was just an example. Here you have the values that FWH really uses:

FWH\include\constant.ch
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Jimmy
Posts: 1740
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany
Has thanked: 2 times

Re: none PIXEL calculation

Post by Jimmy »

hi Antonio,
Antonio Linares wrote:FWH\include\constant.ch
ok, now understand

it depend on Control which *_CHARPIX_H and *_CHARPIX_W to use

Code: Select all | Expand

// Say
#define SAY_CHARPIX_H   15
#define SAY_CHARPIX_W    6
so

Code: Select all | Expand

@ 1, 2 SAY
are

Code: Select all | Expand

@ 1*SAY_CHARPIX_W, 2*SAY_CHARPIX_H SAY ... PIXEL
right :?:
greeting,
Jimmy
User avatar
Antonio Linares
Site Admin
Posts: 42529
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 77 times
Contact:

Re: none PIXEL calculation

Post by Antonio Linares »

correct! :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply