xBuilder and SaveToBMP() issue

xBuilder and SaveToBMP() issue

Postby George » Fri Apr 16, 2010 7:08 pm

Please See below a sample that is working fine with Harbour + Fivewin and
xHarbour (free version) + Fivewin. But is not working with xBuilder (xHarbour commercial version) + Fivewin. I mean the file BMP is created but cannot be open when created thru xBuilder.

Code: Select all  Expand view

 #include "Fivewin.ch"
 #include "TGraph.ch"


FUNCTION MAIN()
    LOCAL oDlg, oGraph

    DEFINE DIALOG oDlg;
           SIZE 600, 500

    @ 1, 1 GRAPH oGraph;
           SIZE 250, 200;
           TYPE 1;
           YVALUES 3D XGRID YGRID XVALUES LEGENDS

    oGraph:aSeries = { { "Serie 1", CLR_CYAN , , },;
                       { "Serie 2", CLR_YELLOW, 2, .T. },;
                       { "Serie 3", CLR_HRED, 3, .F. } }

    oGraph:aData = { { 14280, 20420, 12870, 25347, 7640 },;
                     { 8350, 10315, 15870, 5347, 12340 },;
                     { 12345, -8945, 10560, 15600, 17610 } }

    oGraph:nClrX = CLR_GREEN
    oGraph:nClrY = CLR_RED

  @ 0, 0 BUTTON "Save2BMP" ACTION ( oGraph:Save2Bmp("GRAPH.BMP"),
 msginfo("File GRAPH.BMP has been saved"))

    ACTIVATE DIALOG oDlg  CENTER

    RETURN NIL
 


Please can confirm this problem any of you that are using xBuilder?

Regards


George
George
 
Posts: 725
Joined: Tue Oct 18, 2005 6:49 pm

Re: xBuilder and SaveToBMP() issue

Postby Antonio Linares » Fri Apr 16, 2010 9:20 pm

George,

Could you please provide both bitmaps (in a ZIP file) with the right and wrong ones ? thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42082
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: xBuilder and SaveToBMP() issue

Postby George » Fri Apr 16, 2010 10:37 pm

Antonio,
Sent to your email.

Saludos

George
George
 
Posts: 725
Joined: Tue Oct 18, 2005 6:49 pm

Re: xBuilder and SaveToBMP() issue

Postby Antonio Linares » Sat Apr 17, 2010 7:33 pm

George,

It seems as there are just two different bytes and they make the difference:

With Harbour: BM65 (first 4 bytes)

with xHarbour: MB65 (first 4 bytes)

I think we can easily fix this :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42082
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: xBuilder and SaveToBMP() issue

Postby George » Sun Apr 18, 2010 2:41 pm

Good to know!

Thanks

George.
George
 
Posts: 725
Joined: Tue Oct 18, 2005 6:49 pm

Re: xBuilder and SaveToBMP() issue

Postby Antonio Linares » Fri May 07, 2010 10:05 pm

George,

Problem solved :-)

viewtopic.php?p=98298#p98298
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42082
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: xBuilder and SaveToBMP() issue

Postby George » Fri May 07, 2010 11:23 pm

Very well.
I was following this thread.

Regards


George
George
 
Posts: 725
Joined: Tue Oct 18, 2005 6:49 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Marc Venken and 106 guests