bb.donnay-software.com

Donnay Software Web Forums
It is currently Tue Jul 14, 2020 10:56 pm

All times are UTC - 7 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Thu Jun 25, 2020 10:45 am 
Offline
User avatar

Joined: Thu Jan 28, 2010 1:33 pm
Posts: 391
Location: Republica Dominicana
Hello Roger
I have a problem using BITMAP with DCADDCELLITEM in DCBROWSE

Image Distorted in DCBROWSE, could you help me solve this problem.

I attach an example

Thank you.


Attachments:
eXpress.jpg
eXpress.jpg [ 73.29 KiB | Viewed 598 times ]

_________________
Nolberto Paulino
Regards
Top
 Profile  
 
PostPosted: Fri Jun 26, 2020 6:06 am 
Offline
Site Admin
User avatar

Joined: Wed Jan 27, 2010 6:58 pm
Posts: 4140
Location: Boise, Idaho USA
The source in _DCXBROW.PRG that draws the bitmap looks like this:
Code:
    aSource := {0,0,oBitmap:xSize,oBitmap:ySize}

    aTarget := { nStartCol, nStartRow, nEndCol, nEndRow }

    ::oBitmap:draw( oPS, aTarget, aSource, GRA_BLT_ROP_SRCCOPY,, XBP_STATE_NORMAL )


I suggest that you experiment with some options of XbpBitmap():draw() to see if it makes an improvement.

You will need to modify _DCXBROW.PRG and rebuild DCLIPX.DLL by running BUILD20.BAT.

_________________
The eXpress train is coming - and it has more cars.


Top
 Profile  
 
PostPosted: Fri Jun 26, 2020 7:38 am 
Offline
User avatar

Joined: Thu Jan 28, 2010 1:33 pm
Posts: 391
Location: Republica Dominicana
Thanks Roger for your help
On Line 5119 this code is written and the bitmap does not look good

IF lIcon
aTarget: = {nStartCol, nStartRow, nEndCol, nEndRow}
:: oIcon: Draw (oPS, aTarget, XBP_STATE_NORMAL)
ELSEIF lBitmap

aSource: = {0,0, oBitmap: xSize, oBitmap: ySize}
aTarget: = {nStartCol, nStartRow, nEndCol, nEndRow}
:: oBitmap: draw (oPS, aTarget, aSource, GRA_BLT_ROP_SRCCOPY ,, XBP_STATE_NORMAL)

ELSEIF Valtype (cCaption) == 'C'
GraCaptionStr (oPS, {nStartCol, nStartRow}, {nEndCol, nEndRow}, cCaption, nAlign)
ENDIF




rdonnay wrote:
The source in _DCXBROW.PRG that draws the bitmap looks like this:
Code:
    aSource := {0,0,oBitmap:xSize,oBitmap:ySize}

    aTarget := { nStartCol, nStartRow, nEndCol, nEndRow }

    ::oBitmap:draw( oPS, aTarget, aSource, GRA_BLT_ROP_SRCCOPY,, XBP_STATE_NORMAL )


I suggest that you experiment with some options of XbpBitmap():draw() to see if it makes an improvement.

You will need to modify _DCXBROW.PRG and rebuild DCLIPX.DLL by running BUILD20.BAT.

_________________
Nolberto Paulino
Regards


Top
 Profile  
 
PostPosted: Fri Jun 26, 2020 11:32 am 
Offline
Site Admin
User avatar

Joined: Wed Jan 27, 2010 6:58 pm
Posts: 4140
Location: Boise, Idaho USA
Give me a small sample program and also your .BMP file.

I will work on this for you.

_________________
The eXpress train is coming - and it has more cars.


Top
 Profile  
 
PostPosted: Mon Jun 29, 2020 9:54 am 
Offline
User avatar

Joined: Thu Jan 28, 2010 1:33 pm
Posts: 391
Location: Republica Dominicana
Hello Roger
Attached is compressed eXpress.rar with the example.

On Line 28 is this code cPath: = "C:\Win\nom\sql\GCEFEI\eXpress\"
just put the path where the example folder is with the bitmap




rdonnay wrote:
Give me a small sample program and also your .BMP file.

I will work on this for you.


Attachments:
eXpress.rar [1.16 MiB]
Downloaded 27 times

_________________
Nolberto Paulino
Regards
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 17 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group