Croping bitmap in maxscript
Does anyone have the idea how to crop a bitmap using maxscript ? Say i have bitmap size 2560 x 1600 , I can resize it to 150 x xx , but I have problem when I want to resize it to 150 x 150, kind of rectangular image, its height is strecht out. How to solve it ?
Thanks a lot guys for attention.
Comments
here is some for someone who
here is some for someone who might need it someday, just leaving the traill...not the resizing tho, but to make it white background
Ok miauu, ive done it with
Ok miauu, ive done it with the way you wrote...
Thanks for replay
Can you do this in PS-
Can you do this in PS- resizing 2560 x 1600 image to 150x150 without stretching it?
I think that you can't resize 16:9 image to 4:3 without stretching of the image. When you crop the image you will loose some of the pixels. So, what I suggest:
- resize 2560 x 1600 to 150 x XX pixels(the XX must be less than 150).
- create new image 150x150
- use pasteBitmap(depends of MAX version tha tyou have) or use per pixel loop to "put" the 150 x XX over the 150x150.
At the end your 2560 x 1600 imagw will be resized to 150x150, but you will have black(or any other color that you choose) fields on the right side of the image(blackPixelsWidth = 150 - XX).
Maybe this is not what you need, but... :)
Tools and Scripts for Autodesk 3dsMax