Skinny Image

Skinny Image

Anonymous
Not applicable
520 Views
5 Replies
Message 1 of 6

Skinny Image

Anonymous
Not applicable
anyone have a idea why when I save a image using
saveimage on the thumbnail gotten by DSOleFile.PropertyReader it ends up
skinny?

 

here is a side by side of  a iam and the
resultant wmf made by using saveimage on it

 

 

0 Likes
521 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable
Your code would probably be more useful than the images. I use a different
method for extracting those images (straight C++) and my output.

--
Good judgment comes from experience.
Experience comes from bad judgment.

http://www.acadx.com


"Kent Keller" wrote in message
news:3F3F594C5E7DB1595E5D8FFBCE295297@in.WebX.maYIadrTaRb...
anyone have a idea why when I save a image using saveimage on the thumbnail
gotten by DSOleFile.PropertyReader it ends up skinny?

here is a side by side of a iam and the resultant wmf made by using
saveimage on it
0 Likes
Message 3 of 6

Anonymous
Not applicable
Pressed 'send' a little too quickly. I meant to say that my output is fine.

--
Good judgment comes from experience.
Experience comes from bad judgment.

http://www.acadx.com
0 Likes
Message 4 of 6

Anonymous
Not applicable
Hi Frank

This is the basics of the code I am using

Private oFilePropReader As DSOleFile.PropertyReader
Private oDocProp As DSOleFile.DocumentProperties

Private Sub Form_Load()
Dim sFile As String
sFile = "D:\Inventor\Projects\ATV Lift\ATV Lift.iam"
Set oFilePropReader = New DSOleFile.PropertyReader
Set oDocProp = oFilePropReader.GetDocumentProperties(sFile)
Picture1.Picture = oDocProp.Thumbnail

SavePicture Picture1, Left(sFile, Len(sFile) - 3) & "wmf"
End Sub


--
Kent Keller
http://kwik-mcad.scriptmania.com/

"Frank Oquendo" wrote in message
news:DF819134D6B047C23BAB19EF1A5DC4AF@in.WebX.maYIadrTaRb...
> Pressed 'send' a little too quickly. I meant to say that my output is fine.
>
> --
> Good judgment comes from experience.
> Experience comes from bad judgment.
>
> http://www.acadx.com
>
>
0 Likes
Message 5 of 6

Anonymous
Not applicable
Kent,

 

Have you tried saving as bmp instead of wmf ?

 

Here is the help about SavePicture from VB6, look at the
remarks.

 


SavePicture Statement


Saves a graphic from the Picture or Image property of an object
or control (if one is associated with it) to a file.


Syntax


SavePicture picture, stringexpression


The SavePicture statement syntax has these parts:












Part Description
picture Picture or Image control from which the
graphics file is to be created.
stringexpression Filename of the graphics file to
save.


Remarks


If a graphic was loaded from a file to the Picture property of
an object, either at

size=2>design time
or at
href="javascript:alink_4.Click()">run time
,
and it’s a bitmap, icon, metafile, or enhanced metafile, it's saved using the
same format as the original file. If it is a GIF or JPEG file, it is saved as a
bitmap file.


Graphics in an Image property are always saved as bitmap (.bmp)
files regardless of their original format.


 


"Kent Keller" <
href="mailto:kwik.mcad@verizon.net">
size=2>kwik.mcad@verizon.net
> wrote in message

size=2>news:326D639F5C8443E791C49ADA1D4C0CCE@in.WebX.maYIadrTaRb

size=2>...

| Hi Frank
|
| This is the basics
of the code I am using
|
| Private oFilePropReader As
DSOleFile.PropertyReader
| Private oDocProp As
DSOleFile.DocumentProperties
|
| Private Sub Form_Load()
|
    Dim sFile As String
|     sFile =
"D:\Inventor\Projects\ATV Lift\ATV Lift.iam"
|     Set
oFilePropReader = New DSOleFile.PropertyReader
|     Set
oDocProp = oFilePropReader.GetDocumentProperties(sFile)
|    
Picture1.Picture = oDocProp.Thumbnail
|
|     SavePicture
Picture1, Left(sFile, Len(sFile) - 3) & "wmf"
| End Sub
|
|
|
--
| Kent Keller
|

href="http://kwik-mcad.scriptmania.com/">
size=2>http://kwik-mcad.scriptmania.com/

|
|
"Frank Oquendo" <

size=2>franko@acadx.com
> wrote in message
|

size=2>news:DF819134D6B047C23BAB19EF1A5DC4AF@in.WebX.maYIadrTaRb

size=2>...
| > Pressed 'send' a little too quickly. I meant to say that my
output is fine.
| >
| > --
| > Good judgment comes from
experience.
| > Experience comes from bad judgment.
| >
| >

size=2>http://www.acadx.com

| >
| >
|

|
0 Likes
Message 6 of 6

Anonymous
Not applicable
Hi Patrick

Yes that is the first thing I tried, but when I tried to open it in Irfanview it told me
that the format wasn't bmp and it was either WMF or ......some other format, I can't
remember right now. I will give it a shot as a bmp again tonight though and verify.

--
Kent


"Patrick de Stobbeleir" wrote in message
news:E9FC5550FFA303DC1E999DE7E7940937@in.WebX.maYIadrTaRb...
> Kent,
>
> Have you tried saving as bmp instead of wmf ?
>
> Here is the help about SavePicture from VB6, look at the remarks.
0 Likes