Hello,
Is there a way to stretch an image? Not scale. Put simply, I have attached a square jpg, and I want to strech it to fit inside a rectangle. Possible?
Thanks!
Anu
Solved! Go to Solution.
Solved by 3wood. Go to Solution.
1. Make a block from the image.
2. Select the block and change its "Scale X" or "Scale Y" to suit the rectangle, as shown below.
Result:
You could try scaling it when you first insert / xref in the image. The insertion point is typically the bottom left corner of the image. Once you click the base point, you can either type in a numerical scale value, or move the mouse around to adjust the scale of the image. Not sure if this will solve your problem, but hopefully it's something.
Try this LISP routine. It basically boils all that down into one "command". It will prompt you to select the image. Then it will prompt for five points as shown in the first screenshot. Then the result will be similar to the second screenshot.
(defun c:imgScale( / pt1 ptx1 ptx2 pty1 pty2 ip bname cnt ent) (setq ent nil) (while (not ent) (setq cnt -1) (setq ent(car(entsel "Select Image: "))) (if (EQ "IMAGE" (cdr(assoc 0 (entget ent)))) (progn (while (not bname) (setq bname (strcat "direlandimage" (itoa(setq cnt (1+ cnt))))) (if (tblsearch "block" bname) (setq bname nil)) ) (setq ip (cdr(assoc 10 (entget ent)))) (setq Pt1 (getpoint "Select Basepoint: "))(setq Ptx1 (getpoint "select X Point on Image: "))(setq ptx2 (getpoint "Select X Point Destination: "))(setq pty1 (getpoint "Select Y Point on Image: "))(setq pty2 (getpoint "Select Y Point Destination: ")) (command ".-block" bname ip ent "" ".-insert" bname ip (/ (distance pt1 Ptx2)(distance pt1 Ptx1))(/ (distance pt1 Pty2)(distance pt1 Pty1)) 0.0 ".explode" (entlast) "" ".-purge" "b" bname "n" ) );end True Progn (progn (Princ "Image required. Try again") (setq ent nil) );End False Progn );end if );end while )
Don Ireland
Engineering Design Technician
Hi i wanted to know how can i extend the image in autocad 2006. dont want to scale but how to extend the rectangular image in sqaure
Hi,
>> wanted to know how can i extend the image in autocad 2006. dont want to scale
As you have read the posts above, images can only be modified to a different aspect ratio using the block-scale-X workaround.
- alfred -
1. Make a block from the image.
2. Select the block and change its "Scale X" or "Scale Y" to suit the rectangle, as shown below.
Can't find what you're looking for? Ask the community or share your knowledge.