.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

show a picture in a picturebox control, but the previewicon is so small

10 REPLIES 10
SOLVED
Reply
Message 1 of 11
swaywood
876 Views, 10 Replies

show a picture in a picturebox control, but the previewicon is so small

Hi,all:

     I want to generate the images for the blocks, I found a method of blcitablerecord, but the image is too small, and can not show out clearly.

Bitmap preview = btr.PreviewIcon;

 

 

    you know in autocad there is a MSLIDE command, can make a .sld file which can show out clearly in a lisp programe, but in .net winform how to show the image clearly? or other method to solve it?

 

10 REPLIES 10
Message 2 of 11
swaywood
in reply to: swaywood

sshot-10.png

Message 3 of 11
hgasty1001
in reply to: swaywood

Hi,

 

See :Preview Images

 

By the way, that screen grab looks quite old.

 

Gaston Nunez

 

 

Message 4 of 11
swaywood
in reply to: hgasty1001

Hi,Gasty:

    thank you for your information. I tried Kean's code, but get a error, can not found the method 'CMLContentSearchPreviews'.

    by the way, what's the new screen grab tool you use?

regards

swaywood

Message 5 of 11
swaywood
in reply to: swaywood

can any body help me?

I can not found the method of 'CMLContentSearchPreviews' in autocad2013 Autodesk.AutoCAD.Windows.Data namespace.

the following is kean's blog address.

http://through-the-interface.typepad.com/through_the_interface/2013/11/generating-larger-preview-ima...

 

Message 6 of 11
Jeff_M
in reply to: swaywood

Looks like that Class was added to the 2014 product, so you won't see it in 2013.

Jeff_M, also a frequent Swamper
EESignature
Message 7 of 11
swaywood
in reply to: Jeff_M

hi,jeff:

Message 8 of 11
swaywood
in reply to: swaywood

Hi,jeff:

do you know autocad2014 match what VS and framework .net version?

it seem's .net 4.0 can not import 2014 version acmgd.dll for me.

Message 9 of 11
Jeff_M
in reply to: swaywood

I used VS2010, until just recently, with AutoCAD 2014. .NET 4.0

Jeff_M, also a frequent Swamper
EESignature
Message 10 of 11
hgasty1001
in reply to: swaywood

Hi,

 

I'm using VS 2013 now, but i don't remember problems with Autocad 2014 and .net 4.0 in VS 2010, are you sure you have the right SDK , reference from the include folder and set copy to local false?

 

Gaston Nunez

Message 11 of 11
swaywood
in reply to: hgasty1001

Hi,Gaston Nunez and Jeff:

Thank you so much!

I got the bigger and clearer pictures in autocad 2014.

but the dll can not netload in autocad 2013.

 

Smiley LOL

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost