Image resizing dds via software

Asked

Viewed 21 times

0

I’m having a little doubt, I was analyzing the files of a software in Directx 8 and I saw that it does something that I can not understand how, it takes a base image, let’s call frame dds. and resizes an initial resolution of say 128x116 for something like 401x73, all using only Directx I believe and without losing ANYTHING of quality in the final image, follow examples of the images in question:

Initial:

frame.dds inicial

Ending:

inserir a descrição da imagem aqui

How is that possible? Could someone explain it to me? I tried to do the same using sprites and in Sprite->Draw I would modify the scalling, until it worked but I lost a lot of quality in the final image, the corners got blurred and etc...

  • Look online for Patch 9 or 9 Patch. The technique consists of repeating or stretching the middle of the image, and keeping the corners distortion-free (Imagine dividing the image into 9 pieces, where the 4 corners are not distorted, the "upper middle" and the "lower middle" only stretch or repeat horizontally, and the "middle left" and "middle right" only stretch or repeat vertically. Only the middle square that is stretched or replicated on the 2 axes.

  • Example: http://1.bp.blogspot.com/-7K_URaoOH2c/Vplhcoe1wfi/AAAAAAAAB00/tWeFG0wSfMs/s1600/Nine-patch-image.png

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.