- Resolution Loss When Converting to Powerpoint?

From: Martin, Marc <"Martin,>
Date: Fri, 29 Apr 2005 09:35:03 -0700

----boundary-LibPST-iamunique-1601537992_-_-
Content-type: text/plain

> We had a similar problem pasting
> BlackBox Views as Metafiles into Word
> on Windows NT. When the View is focussed
> it is fine, by release the focus and the fonts,
> particularly the inter-character spacing,
> are wrong.
>
> We now use Bitmaps!

Well, fortunately, these days we have the source
code to Blackbox, so we can trace the problem
and fix it -- at least, when the problem is in
Blackbox and not Windows and/or PowerPoint!
 
With a brief amount of searching and experimentation,
I appear to have found a way to improve my problem.

In the module OleData, there is a procedure called
"ExportPicture". This procedure uses a global
variable called "unit", which is set to screen
resolution (96 dpi). I modified this procedure
by introducing a local variable:
  
  tinyUnit := unit DIV 6;

I replaced all occurances of "unit" within
this procedure with "tinyUnit". I then compiled
OleData and did my usual Blackbox plotting and
copying/pasting into Powerpoint.

The result? Powerpoint now has a much higher
resolution version of my Blackbox plot.
Ungrouping it still degrades it, but it's still
a lot (6 times?) better than it was before.

I'll have to take a closer look at the
OleData.ExportPicture procedure and try
to understand what it's doing (I'm sure
it's just standard Windows MetaFile creation,
but I don't know anything about this subject)

Marc

--- BlackBox
--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy



----boundary-LibPST-iamunique-1601537992_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWM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yBzdWJqZWN0KVxw
YXINClxwYXINCk1hcmMgXHBhcg0KXHBhcg0KLS0tIEJsYWNrQm94XHBhcg0KLS0tIHNlbmQgc3Vi
amVjdCBIRUxQIG9yIFVOU1VCU0NSSUJFIHRvIGJsYWNrYm94QG9iZXJvbi5jaH19AGJlcm9uLgAH
AAA

----boundary-LibPST-iamunique-1601537992_-_---
Received on Fri Apr 29 2005 - 18:35:03 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:28:15 UTC