In Autolisp DCL, Can I create image button by insertion of image format like JPG

In Autolisp DCL, Can I create image button by insertion of image format like JPG

Anonymous
Not applicable
1,418 Views
1 Reply
Message 1 of 2

In Autolisp DCL, Can I create image button by insertion of image format like JPG

Anonymous
Not applicable

Dear All,

 

I need a help. Currently I am new to the Autolisp DCL.

 

1. Query:-

In Autolisp DCL, I would like to insert image format like "JPG" or "TIF".

Instead of "SLD" slide format.

 

2. Sample DCL:-

lisp48o : dialog { //dialog name
label = "Test" ; //give it a label

: row { //begin row

: boxed_column {
label = "Gas baffle image";
: image { //define image tile
key = "im3" ; //give it a name
height = 40.0 ; //add a height
width = 100.0 ; //and now a width
fixed_width = true; //fix the width
fixed_height = true; //fix the height
color = graphics_background; //set background color
}//end image
}

}

 

3. Autolisp code for DCL

....

...

..

(setq w (dimx_tile "im3") ;get image tile width
h (dimy_tile "im3") ;get image tile height

);setq

(start_image "im3") ;start the image

;;(fill_image 100 -5 (* w 10) (* h 10) 250) ;1 = AutoCAD red.

;display a slide
(slide_image -200 10 (* w 3) (* h 1) "C:\\GB_Top_leftview-1a.sld")

(end_image)

.........

................

 

 

Can some one help me out?

 

Thank you

 

Regards

S.Muruganandam

0 Likes
1,419 Views
1 Reply
Reply (1)
Message 2 of 2

patrick_35
Collaborator
Collaborator

Hi

 

You can't use bitmap into dcl, only slide.
But you have this topic who shows how to transform an picture into points usable in dcl.

 

@+

0 Likes