Search found 124 matches

by concentra
Thu Jul 04, 2024 11:36 am
Forum: FiveWin for Harbour/xHarbour
Topic: Intercept pressing VK_SNAPSHOT ( "PrtScr" )
Replies: 6
Views: 670

Re: Intercept pressing VK_SNAPSHOT ( "PrtScr" )

Or, how do I send this key pressing event to the :bKeyDown block of an object ?
by concentra
Thu Jul 04, 2024 11:23 am
Forum: FiveWin for Harbour/xHarbour
Topic: Intercept pressing VK_SNAPSHOT ( "PrtScr" )
Replies: 6
Views: 670

Re: Intercept pressing VK_SNAPSHOT ( "PrtScr" )

Hi Antonio.

Thanks, your sample works.
But sorry, I am not a C guy...
MessageBeep( -1 ); ==> MyHbFunc()
How do I call a Harbour function, for example MyHbFunc() from the C code ?

[[]] Maurício Faria
by concentra
Wed Jul 03, 2024 7:32 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Intercept pressing VK_SNAPSHOT ( "PrtScr" )
Replies: 6
Views: 670

Intercept pressing VK_SNAPSHOT ( "PrtScr" )

Hi.
I would like to intercept the "PrtScrn" key when it's pressed by the user.
I suppose that the key code is VK_SNAPSHOT, please correct me if I am wrong.
But seems that Windows intercepts it first and FiveWin don't get that it was pressed.
Does anyone knows if is it possible ?

[[]]
Maurício ...
by concentra
Wed Jul 03, 2024 11:24 am
Forum: FiveWin for Harbour/xHarbour
Topic: Image x xImage quality difference
Replies: 42
Views: 5107

Re: Image x xImage quality difference

nageswaragunupudi wrote:Please do not print oXImage.
Ok, understood.
But don't you agree that it should work?
It's a bug...

[[]] Maurício Faria
by concentra
Tue Jul 02, 2024 6:56 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Image x xImage quality difference
Replies: 42
Views: 5107

Re: Image x xImage quality difference

Hi Corinthiano Triste... :(
karinha wrote:    oPrn:SayImage( 150, 500, "IMAGE.TIF", 3900, 6500 )
Regards, saludos.
How did you calculate the 3900 and 6500 values ?

[[]] Outro Corinthiano Triste
by concentra
Tue Jul 02, 2024 6:07 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Image x xImage quality difference
Replies: 42
Views: 5107

Re: Image x xImage quality difference

Hi.

Now I am having an issue with printing.

I need to print the image as a full page in the width ( or near this ).

Please, see this code:

#include "Fivewin.ch"

FUNCTION MAIN()

LOCAL oWnd
LOCAL oXImage
LOCAL cFile := "Image.tif"

DEFINE WINDOW oWnd FROM 0,0 TO GetSysMetrics(1)-90 ...
by concentra
Tue Jul 02, 2024 11:38 am
Forum: FiveWin for Harbour/xHarbour
Topic: Image x xImage quality difference
Replies: 42
Views: 5107

Re: Image x xImage quality difference

We resolved the issue with gdi+.
FIX:

Thanks for the fix!


as good as Microsoft Photo.
This is a screenshot comparing Microsoft Photo (left) and xImage(right)


I will ask permission to disagree.
To me, here and in your sample image, Microsoft Photo is still better than xImage.
This is not a ...
by concentra
Mon Jul 01, 2024 4:14 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Image x xImage quality difference
Replies: 42
Views: 5107

Re: Image x xImage quality difference

nageswaragunupudi wrote:I suggest this work-around.
This worked very well.
Thanks.

Only for the record, Windows Photo seems to give a slightly better image. Better focus ? Or Windows Photo itself enhances the image ?
But your solution is good enough to my needs.

Again, very thanks!
by concentra
Fri Jun 28, 2024 1:11 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Image x xImage quality difference
Replies: 42
Views: 5107

Re: Image x xImage quality difference

I would like to test with TImage and TXImage and see what can be done to improve the quality.

Take a look at this code:

#include "Fivewin.ch"

FUNCTION MAIN()

Local oWnd
LOCAL oImage
LOCAL oImage2
LOCAL oXImage

PARAMETER cFile

IF EMPTY(cFile)
cFile := "Image.tif"
ENDIF

DEFINE ...
by concentra
Fri Jun 28, 2024 12:47 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Image x xImage quality difference
Replies: 42
Views: 5107

Re: Image x xImage quality difference

And the original image is this Tiff image http://farmacia.com.br/lixo/Image.tif.
I am not able to get the image from this address.
This is kind of weird. The image is there...
if possible can you send the Tif file to my email
nageswaragunupudi [at] gmail [dot] com
Sent.

See a sample test ...
by concentra
Tue Jun 25, 2024 5:43 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Image x xImage quality difference
Replies: 42
Views: 5107

Re: Image x xImage quality difference

Concentra, compare você mesmo. Eu prefiro usar IMAGE.
Então Karinha, comparei...
Image tem melhor qualidade na tela ( preciso disso ) e xImage tem mais recursos e funções.
No final acho que vou usar o Image e "chupar" as funções da classe xImage que eu preciso.

[[]]
Maurício Ventura Faria

P.S ...
by concentra
Tue Jun 25, 2024 4:22 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Image x xImage quality difference
Replies: 42
Views: 5107

Re: Image x xImage quality difference

cmsoft wrote:Asi es, ximage te da muchas buenas opciones.
Yes, I am aware of that.
My question is about quality of the image on screen.
And xImage is worse than Image for the same TIF image file.
by concentra
Tue Jun 25, 2024 1:41 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Image x xImage quality difference
Replies: 42
Views: 5107

Image x xImage quality difference

Hi.
I noted a difference in quality between Image and xImage controls.
In the below samples, the first one is an Image and the last is a xImage.
http://farmacia.com.br/lixo/Image.png
http://farmacia.com.br/lixo/xImage.png

And the original image is this Tiff image http://farmacia.com.br/lixo ...
by concentra
Wed Mar 30, 2022 6:30 pm
Forum: FiveWin for Harbour/xHarbour
Topic:
Replies: -1
Views:

Re: Browse and lower case keys

nageswaragunupudi wrote:GetKeyState( VK_SHIFT ) --> Shift key is pressed

Hi.
This does not work when "CAPS LOCK" is turned off and no SHIFT pressed.
Do you know how do I know CAPS LOCK state ?

[[]] Maurício Ventura Faria