Problem with TMetafile

Problem with TMetafile

Post by jake » Sat, 01 Apr 2000 04:00:00



    Hi, my problem is that when I save a metafilecanvas into a metafile, and
after repaint a form the elements that I had save, these elements are in the
reverse order, any idea why this happens?

Thanks in advance

 
 
 

1. Problem with TMetafile on Win2000

Hi.
Sorry, I want have 9 rectangles on Canvas. I have next code. It's good
working on 95-98 platform and bad on Win2000. Under Win2000 rectangles have
crossing and another sizes. It's have depend video-drivers and built
versions of Win2000 also. If  I do comment strings /*1*/ and /*2*/ (under
win200) , this problem have other form, but not hidden fully. How I can
corerct this problem?

        TMetafile* pMetafile = new TMetafile();
/*1*/        pMetafile->MMWidth = 21000;
/*2*/        pMetafile->MMHeight = 29700;
        pMetafile->Inch = 1440;
        float coeff = (float)pMetafile->Width / (float)pMetafile->MMWidth;
        for(int i = 0; i <= 2; i++)
        for(int j = 0; j <= 2; j++){

                TMetafileCanvas* pMCanvas = new TMetafileCanvas(pMetafile,
0);
                pMCanvas->Draw(0, 0, pMetafile);
                pMCanvas->Pen->Color = clBlack;
                pMCanvas->Pen->Width = 3;
                pMCanvas->Brush->Color = clWhite;
                pMCanvas->Brush->Style = bsSolid;

                TRect rect;
                rect.Left = coeff * (10 + i * 600);
                rect.Top = coeff * (20 + j * 500);
                rect.Right = rect.Left + coeff * 400;
                rect.Bottom = rect.Top + coeff * 300;

                pMCanvas->Rectangle(rect);
                pMCanvas->Free();

        };

        Clipboard()->Assign(pMetafile);
        pMetafile->Free();

2. Programming S3 card with clock chip ICS2595

3. Serious problems with TMetafile

4. *** QuickTime VR information ***

5. Problem /w TMetafile Canvas DPI using Printer.Handle

6. compatible triangulation source code ?

7. problems with TMetafile & TMetafilecanvas

8. TMetafile stretchdraw problem

9. TMetafile problem with win95/982000

10. Problem with Fonts in a TMetafile placed on an TImage

11. TMetaFile & TMetaFileCanvas (NOT the linking problem)

12. Problem with fonts viewing TMetafile on TImage at screen