EMF - wrong transformation of vertical/horizontal flipped images

Bug #1800732 reported by Andreas Beeker
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Confirmed
Undecided
Unassigned

Bug Description

Inkscape version: Inkscape 0.92.3 (2405546, 2018-03-11)
System: Linux 4.15.0-36-generic #39-Ubuntu SMP Mon Sep 24 16:19:09 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

The attached file contains the following EMF record:

Record nr. 947
stretchDiBits {
  rasterOperation: 'SRCCOPY',
  colorUsage: 'DIB_RGB_COLORS',
  srcBounds: { x: 0.0, y: 0.0, w: 198.0, h: 192.0 },
  dstBounds: { x: 12.0, y: 163.0, w: 99.0, h: -96.0 }
}

The flipped dstBounds.height leads to a wrong placement.
In case you use clipping, i.e. if srcBounds only references a subimage area of the embedded bitmap, make sure to also correctly calculate the new destination bounds.

Tags: emf importing
Revision history for this message
Andreas Beeker (kiwiwings) wrote :
Revision history for this message
Alvin Penner (apenner) wrote :

confirmed on Windows 10, Inkscape 0.92.3 (2405546, 2018-03-11)

Changed in inkscape:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.