/reactos/win32ss/gdi/gdi32/wine/enhmfdrv/ |
H A D | init.c | 219 physDev->emh = emh; in EMFDRV_WriteRecord() 367 physDev->emh->rclBounds.left = physDev->emh->rclBounds.top = 0; in CreateEnhMetaFileW() 376 physDev->emh->rclFrame.left = physDev->emh->rclFrame.top = 0; in CreateEnhMetaFileW() 377 physDev->emh->rclFrame.right = physDev->emh->rclFrame.bottom = -1; in CreateEnhMetaFileW() 382 physDev->emh->nBytes = physDev->emh->nSize; in CreateEnhMetaFileW() 471 if(physDev->emh->rclFrame.left > physDev->emh->rclFrame.right) { in CloseEnhMetaFile() 472 physDev->emh->rclFrame.left = physDev->emh->rclBounds.left * in CloseEnhMetaFile() 473 physDev->emh->szlMillimeters.cx * 100 / physDev->emh->szlDevice.cx; in CloseEnhMetaFile() 474 physDev->emh->rclFrame.top = physDev->emh->rclBounds.top * in CloseEnhMetaFile() 475 physDev->emh->szlMillimeters.cy * 100 / physDev->emh->szlDevice.cy; in CloseEnhMetaFile() [all …]
|
H A D | objects.c | 51 if(physDev->cur_handles > physDev->emh->nHandles) in EMFDRV_AddHandle() 52 physDev->emh->nHandles++; in EMFDRV_AddHandle()
|
H A D | enhmetafiledrv.h | 37 ENHMETAHEADER *emh; /* Pointer to enhanced metafile header */ member
|
/reactos/win32ss/gdi/gdi32/wine/ |
H A D | enhmetafile.c | 63 ENHMETAHEADER *emh; member 273 emh->iType, emh->dSignature); in EMF_Create_HENHMETAFILE() 284 metaObj->emh = emh; in EMF_Create_HENHMETAFILE() 428 size = emh->nSize; in GetEnhMetaFileHeader() 452 if(emh->nDescription == 0 || emh->offDescription == 0) return 0; in GetEnhMetaFileDescriptionA() 453 descrW = (WCHAR *) ((char *) emh + emh->offDescription); in GetEnhMetaFileDescriptionA() 482 if(emh->nDescription == 0 || emh->offDescription == 0) return 0; in GetEnhMetaFileDescriptionW() 485 memmove(buf, (char *) emh + emh->offDescription, min(size,emh->nDescription)*sizeof(WCHAR)); in GetEnhMetaFileDescriptionW() 518 if(!emh) return 0; in GetEnhMetaFileBits() 2404 if(!emh) { in EnumEnhMetaFile() [all …]
|
H A D | emfdc.c | 46 ENHMETAHEADER *emh; member 62 ENHMETAHEADER *emh; in emfdc_record() local 76 emh = HeapReAlloc( GetProcessHeap(), 0, emf->emh, size ); in emfdc_record() 78 emf->emh = emh; in emfdc_record() 2460 emf->emh->rclFrame.left = emf->emh->rclFrame.top = 0; in CreateEnhMetaFileW() 2466 emf->emh->nBytes = emf->emh->nSize; in CreateEnhMetaFileW() 2536 if (emf->emh->rclFrame.left > emf->emh->rclFrame.right) in CloseEnhMetaFile() 2538 emf->emh->rclFrame.left = emf->emh->rclBounds.left * in CloseEnhMetaFile() 2540 emf->emh->rclFrame.top = emf->emh->rclBounds.top * in CloseEnhMetaFile() 2542 emf->emh->rclFrame.right = emf->emh->rclBounds.right * in CloseEnhMetaFile() [all …]
|
H A D | gdi_private.h | 154 extern HENHMETAFILE EMF_Create_HENHMETAFILE(ENHMETAHEADER *emh, DWORD filesize, BOOL on_disk ) DECL…
|
/reactos/modules/rostests/tests/enhmetafile/ |
H A D | enhmetafile.c | 19 ENHMETAHEADER emh; in WinMain() local 28 GetEnhMetaFileHeader(EnhMetafile, sizeof(ENHMETAHEADER), &emh); in WinMain() 29 EnhMetafileSize.cx = emh.rclBounds.right - emh.rclBounds.left; in WinMain() 30 EnhMetafileSize.cy = emh.rclBounds.bottom - emh.rclBounds.top; in WinMain()
|
/reactos/win32ss/gdi/gdi32/objects/ |
H A D | metafile.c | 131 ENHMETAHEADER emh; in GdiCreateLocalMetaFilePict() local 137 if (!GetEnhMetaFileHeader( hEMF, sizeof(emh), &emh )) in GdiCreateLocalMetaFilePict() 144 pInfo->xExt = emh.rclFrame.right - emh.rclFrame.left; // Width in GdiCreateLocalMetaFilePict() 145 pInfo->yExt = emh.rclFrame.bottom - emh.rclFrame.top; // Height in GdiCreateLocalMetaFilePict()
|
/reactos/modules/rostests/winetests/oleaut32/ |
H A D | olepicture.c | 1471 ENHMETAHEADER *emh; in test_load_save_emf() local 1505 emh = GlobalLock(hmem); in test_load_save_emf() 1508 ok(emh->iType == EMR_HEADER, "wrong iType %04x\n", emh->iType); in test_load_save_emf() 1509 ok(emh->dSignature == ENHMETA_SIGNATURE, "wrong dSignature %08x\n", emh->dSignature); in test_load_save_emf() 1534 emh = (ENHMETAHEADER *)(mem + 2); in test_load_save_emf() 1535 ok(emh->iType == EMR_HEADER, "wrong iType %04x\n", emh->iType); in test_load_save_emf() 1536 ok(emh->dSignature == ENHMETA_SIGNATURE, "wrong dSignature %08x\n", emh->dSignature); in test_load_save_emf()
|
/reactos/modules/rostests/winetests/gdi32/ |
H A D | metafile.c | 3630 ENHMETAHEADER *emh; in test_SetEnhMetaFileBits() local 3640 emh = (ENHMETAHEADER *)data; in test_SetEnhMetaFileBits() 3641 memset(emh, 0, sizeof(*emh)); in test_SetEnhMetaFileBits() 3643 emh->iType = EMR_HEADER; in test_SetEnhMetaFileBits() 3644 emh->nSize = sizeof(*emh); in test_SetEnhMetaFileBits() 3645 emh->dSignature = ENHMETA_SIGNATURE; in test_SetEnhMetaFileBits() 3647 emh->nBytes = sizeof(*emh); in test_SetEnhMetaFileBits() 3652 hemf = SetEnhMetaFileBits(emh->nBytes, data); in test_SetEnhMetaFileBits() 3657 emh->nBytes++; in test_SetEnhMetaFileBits() 3666 emh->dSignature = 0; in test_SetEnhMetaFileBits() [all …]
|
/reactos/dll/win32/oleaut32/ |
H A D | olepicture.c | 263 ENHMETAHEADER emh; in OLEPictureImpl_SetEMF() local 265 GetEnhMetaFileHeader(This->desc.u.emf.hemf, sizeof(emh), &emh); in OLEPictureImpl_SetEMF() 269 This->himetricWidth = emh.rclFrame.right - emh.rclFrame.left; in OLEPictureImpl_SetEMF() 270 This->himetricHeight = emh.rclFrame.bottom - emh.rclFrame.top; in OLEPictureImpl_SetEMF()
|
/reactos/dll/win32/riched20/ |
H A D | richole.c | 5733 ENHMETAHEADER emh; in ME_GetOLEObjectSize() local 5788 GetEnhMetaFileHeader(stgm.u.hEnhMetaFile, sizeof(emh), &emh); in ME_GetOLEObjectSize() 5789 pSize->cx = emh.rclBounds.right - emh.rclBounds.left; in ME_GetOLEObjectSize() 5790 pSize->cy = emh.rclBounds.bottom - emh.rclBounds.top; in ME_GetOLEObjectSize() 5810 ENHMETAHEADER emh; in ME_DrawOLE() local 5868 GetEnhMetaFileHeader(stgm.u.hEnhMetaFile, sizeof(emh), &emh); in ME_DrawOLE() 5873 sz.cx = emh.rclBounds.right - emh.rclBounds.left; in ME_DrawOLE() 5874 sz.cy = emh.rclBounds.bottom - emh.rclBounds.top; in ME_DrawOLE()
|
/reactos/dll/win32/gdiplus/ |
H A D | image.c | 4198 ENHMETAHEADER emh; in load_emf() local 4205 hr = IStream_Read(stream, &emh, sizeof(emh), &size); in load_emf() 4206 if (hr != S_OK || size != sizeof(emh) || emh.dSignature != ENHMETA_SIGNATURE) in load_emf() 4213 buf = heap_alloc(emh.nBytes); in load_emf() 4216 hr = IStream_Read(stream, buf, emh.nBytes, &size); in load_emf() 4217 if (hr != S_OK || size != emh.nBytes) in load_emf() 4223 hemf = SetEnhMetaFileBits(emh.nBytes, buf); in load_emf()
|