Alaska Software Inc. - PresSpace:configure changes the size of a segment
Username: Password:
AuthorTopic: PresSpace:configure changes the size of a segment
José Angel [GpaSoft] PresSpace:configure changes the size of a segment
on Fri, 12 Aug 2011 11:23:08 +0200
Clayton Jones Re: PresSpace:configure changes the size of a segment
on Fri, 19 Aug 2011 02:37:12 -0400
Hello Jose,

>For printing I use a presentation space that is linked to a device context of a printer, open a segment, drawing data, 
>close the segment and finally send data to the printer. Now I need to create a bitmap with the information of this graphic segment, 
>to do this I create a XbpBitmap that links with the pres space. This works fine, the problem is after create the bmp, when I reconnect 
>the pres space with the device context of the printer again, the size of the segment is smaller than the original size.

I think that :configure() destroys the segments.  This is just an
idea, but I think it will work if you save the segment using
GraSegSave(), then reconfigure the PS, then load the segment back into
the PS using GraSegLoad().


Regards,
Clayton

Clayton Jones   www.cjcom.net 
 Top-Down Library for Xbase++
 X-DBU Database Utility   
 X-MEMO Memo Field Replacement
NEW "X" PRODUCT (coming soon)