Search found 5 matches

by S.D.
26 Nov 2012, 14:24
Forum: CAD DLL
Topic: CADImage Bitmap with black background
Replies: 6
Views: 51642

Re: CADImage Bitmap with black background

Hello,

I solved this problem now. For now, I use the methode DrawCAD to draw into a local dc and extracting the bits out of the DIB. However, the bugs I found in DrawCADToDIB and DrawCADToBitmap are still there and might need a fix in the future.

Yours sincerly
Steve
by S.D.
23 Nov 2012, 14:34
Forum: CAD DLL
Topic: CADImage Bitmap with black background
Replies: 6
Views: 51642

Re: CADImage Bitmap with black background

Hi, I am still struggling with the problem above. Temporary I tried to use DrawCADToDIB, however the Dimension of the returned DIB seems to be different from values, given by the rectangle. So I still trying to get DrawCADToBitmap to work (currently using v.8.0). You told me, that "DrawCADToBitmap d...
by S.D.
01 Aug 2012, 16:07
Forum: CAD DLL
Topic: CADImage Bitmap with black background
Replies: 6
Views: 51642

Re: CADImage Bitmap with black background

Hallo, thanks for your suggestions. I checked the opengl background and all, but this is not the issue. After this I went deeper into debugging and compared the results of the DrawCADtoBitmap, used within the code, posted above. Directly after loading the the image into the HANDLE MyBitmap, the resu...
by S.D.
26 Jun 2012, 19:31
Forum: CAD DLL
Topic: CADImage Bitmap with black background
Replies: 6
Views: 51642

Re: CADImage Bitmap with black background

Thank you for your fast reply! Unfortunatly I can not find a code sample, where DrawCADtoBitmap is used, but only an example for DrawCADtoDIB. But I will try to give a code sample. I can not exclude, that the error is on my side, but since it worked with the 7.2.5.1 dll, something might have change ...
by S.D.
25 Jun 2012, 14:33
Forum: CAD DLL
Topic: CADImage Bitmap with black background
Replies: 6
Views: 51642

CADImage Bitmap with black background

Hello, I've got a problem loading a dwg-file into a bitmap using DrawCADtoBitmap. Using version 7.2.5.1 this leads to a CAD bitmap with a white background, while version 7.4.1 produces a bitmap with a black background. Since most dwg-files used consists of black elements, this is a real problem. Try...