Hello friends, I'm trying to get pictures with gtwvg but I would put images without distortion, images proportional
someone has an example to share?
I am using to display the images.
Wvt_DrawImage (14, 10, 18, 30,. "\ JPG100 \ 006010.jpg")
I know that changing the coordinates changes the proportions.
Best regards
Sami Laham
HI Sami, nice to hear from you
i speak a bit english - enough to buy bread and eggs ;-) - i mean if i let goggel translate it back to my mother language, i don't understand myself.
--
I am working with a nice small RAM drive for this tempfile. This means a filesystem not on real disk, but in RAM.
In Linux it is just an entry in /etc/fstab, and there also exist solutions in Windows, i have one.
So creating a tempfile on a RAM drive is nearly the same as to fetch the result from any function. It fly quickly like a meteor ...
I very intensive use this freeimage lib, at much other occasions - f.e. when creating pdf with images - could save my life as developer.
###
That are feedbacks i searching for:
wvt_drawimage() have more parameters than my poor one know ?!! - nice to hear that.
And i need graphics display more for Linux than Windows, as special solution ...
regards
Rolf
Hello Rolf, sorry for the delay in replying but just saw your reply today when I was looking at the list of the users-group.
IF
HB_GtVersion() == "WVG"
Wvt_SetGui( .T. )
ENDIF
this was exactly what was needed to stay cool. tks
Second:
a very often mistake, i see in calculation of image width:
10 - 5 = 5
mathematical correct !
but a picture from coordinate x=5 up to x=10
is six! pixels wide, where: right - left = 5
Often seen, you are not the first one. This can lead to unexpected glitches.
You are correct good observation. :-)
Regards
Sami Laham
--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users
---
You received this message because you are subscribed to the Google Groups
"Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to harbour-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Hi Nenad,
One simple question: how to make a minimal gtwvt program that displays a picture? For example:
one simple answer: not with GTWVT.
Regards
Rolf
Thanks Massimo!
I read your tutorial, but it seems that my problem is wrong hbmk script.
Regards, NB
Hi Nenad,
the problem of SETPOS_XY is known - and in a first but wrong patch from me 'corrected' in nightly version:
I should post a really corrected one, but are ashamed of my first wrong one, so i like to stay quiet.
There seem no alternative to GTWVG for reliable display bitmaps for Windows.
Joses' example misses an important point discussed earlier in this thread.
Because GTWVG is derived from GTWVT some function names seem to have the prefix wvt_.
I see no Wvt_GetWindowHandle() for GTWVT - wherfore do you need that ?
Regards
Rolf
I use gtwvt because it has a little better quality of display fonts. Function GetWindowsHandle is used to select the folder:
oShell := Win_OleCreateObject ("Shell.Application")
oItem := oShell:BrowseForFolder (Wvt_GetWindowHandle(), "Chose dir", 0, "")
Regards, NB
From: harbou...@googlegroups.com [mailto:harbou...@googlegroups.com] On Behalf Of elch
Sent: Wednesday, March 27, 2013 5:06 AM
To: harbou...@googlegroups.com
Subject: Re: [harbour-users] Re: GTWVG - imagem proporcional - help
Hi Nenad,
--
Hello friends, I'm trying to get pictures with gtwvg but I would put images without distortion, images proportional
I use the same font in both cases. With the same parameters (font, size, quality, palette…) gtvvg looks a worse than the gtvvt.
Thanks for me, also :)
Can you please explain parameter aPxlOff?
Regards, NB
--
Can you please explain parameter aPxlOff?
I think the problem is not in color, edges of the letters are different (see larger image). All parameters are controlled by the user, it performs the following initialization:
HB_GtInfo (HB_GTI_ISFULLSCREEN, lFull)
HB_GtInfo (HB_GTI_FONTNAME, cFont)
HB_GtInfo (HB_GTI_FONTWIDTH, nW)
HB_GtInfo (HB_GTI_FONTSIZE , nH)
HB_GTInfo (HB_GTI_FONTQUALITY, nFQ)
HB_GTInfo (HB_GTI_FONTWEIGHT, nFW)
HB_GTInfo (HB_GTI_PALETTE, aPal)
IF aWnd <> NIL
HB_GtInfo (HB_GTI_SETPOS_XY, aWnd)
END IF
It is the exactly the same for both cases. First I used the gtwvg, but users have complained about the look, so I had to move to gtwvt. I plan to use hbqt, gtvvt is only a temporary solution.
Ragards, NB
From: harbou...@googlegroups.com [mailto:harbou...@googlegroups.com] On Behalf Of Pritpal Bedi
Sent: Thursday, March 28, 2013 8:28 PM
To: harbou...@googlegroups.com
Subject: Re: [harbour-users] Re: GTWVG - imagem proporcional - help
Hi Nenad
--
I think the problem is not in color, edges of the letters are different (see larger image). All parameters are controlled by the user, it performs the following initialization:
HB_GtInfo (HB_GTI_ISFULLSCREEN, lFull)
HB_GtInfo (HB_GTI_FONTNAME, cFont)
HB_GtInfo (HB_GTI_FONTWIDTH, nW)
HB_GtInfo (HB_GTI_FONTSIZE , nH)
HB_GTInfo (HB_GTI_FONTQUALITY, nFQ)
HB_GTInfo (HB_GTI_FONTWEIGHT, nFW)
HB_GTInfo (HB_GTI_PALETTE, aPal)
IF aWnd <> NIL
HB_GtInfo (HB_GTI_SETPOS_XY, aWnd)
END IF
It is the exactly the same for both cases. First I used the gtwvg, but users have complained about the look, so I had to move to gtwvt. I plan to use hbqt, gtvvt is only a temporary solution.
Hope it is clear by now.
Yes, thanks
NB
For GTWVG try as
Wvt_SetFont( cFont, nHeight, nWidth, nQuality ) -> aOldFontInfo
Font propogation in GTWVT, if I have not already fixed, is a little ambigous.
Thanks, I'll try
BTW, if you are not thinking of adding GUI components to
your application then you can always stay with GTWVT.
For now I'm satisfied with gtwvt. Now I need a simple slideshow, so I tried to activate gtwvg. Maybe I'll use hbqt (see Dusan Majkić question).
Regards, NB
Hi Pritpal, thanks for the new improvement. I will test.
Do you know if the "Harbour nightly build" is update with this last changes ?
Regards,
Sami Laham
--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users
---
You received this message because you are subscribed to the Google Groups
"Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to harbour-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Nenhum vírus
encontrado nessa mensagem.
Verificado por AVG - www.avgbrasil.com.br
Versão: 2013.0.2904 / Banco de dados de vírus: 2641/6210 - Data de Lançamento:
03/28/13
Hi Pritpal, forget my last question, i need download on Git and build.
Regards,
Sami
Versão: 2013.0.2904 / Banco de dados de vírus: 2641/6218 - Data de Lançamento: 04/01/13