Thema: Delphi Png Resize

Einzelnen Beitrag anzeigen

Benutzerbild von Dani
Dani

Registriert seit: 19. Jan 2003
732 Beiträge
 
Turbo Delphi für Win32
 
#2

Re: Png Resize

  Alt 6. Jan 2008, 04:04
Hi. I'm fairly sure that you'll have to clone the vertical/horizontal pixel lines in the center of the image if you are working with a bit-mapped graphic. If you look closely at the balloon image, you'll find two pixels of the color clFuchsia. My guess is those are some sort of marker that indicate which area of the picture may be stretched.

The basic idea is to have two bitmaps. One that contains the original, unmodified PNG image and one with the stretched image that will be displayed. All you have to do is recreate the streched image whenever the user changes its size (use Delphi-Referenz durchsuchenTCanvas).
Miniaturansicht angehängter Grafiken
clipboard01_186.png  
Dani H.
At Least I Can Say I Tried
  Mit Zitat antworten Zitat