Alter the dimensions of a metafile
-
Hi I use the CreateEnhMetaFile to create an enhanced metafile. The third parameter is the rectangle which give me the sizeo of the metafile. Is it possible to alter that side after the creation? This will allow me to scale better my metafile. Ideally I am locking for something like: CMetaFileDC * pDCMetaFile = .....; pDCMetaFile->CreateEnhanced(p_dc, filename.data(), &rect, NULL); rect = new sizes; pcDCMetaFile->alterSize(rect); Thanks a lot Always try to keep things as simple as possible
-
Hi I use the CreateEnhMetaFile to create an enhanced metafile. The third parameter is the rectangle which give me the sizeo of the metafile. Is it possible to alter that side after the creation? This will allow me to scale better my metafile. Ideally I am locking for something like: CMetaFileDC * pDCMetaFile = .....; pDCMetaFile->CreateEnhanced(p_dc, filename.data(), &rect, NULL); rect = new sizes; pcDCMetaFile->alterSize(rect); Thanks a lot Always try to keep things as simple as possible
Not sure what you're trying to accomplish - you can draw a metafile into any size area you desired. The size passed to
CreateEnhanced()
is more for future reference than anything else, it isn't enforced.Shog9
I'm not the Jack of Diamonds... I'm not the six of spades. I don't know what you thought; I'm not your astronaut...