AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Png Resize

Ein Thema von mohfa · begonnen am 6. Jan 2008 · letzter Beitrag vom 6. Jan 2008
Antwort Antwort
mohfa

Registriert seit: 11. Feb 2007
97 Beiträge
 
Delphi 7 Enterprise
 
#1

Png Resize

  Alt 6. Jan 2008, 00:48
Hi every body
i want to be able to resize a Png image as it appears in the Attachment



many thanks .
Angehängte Dateien
Dateityp: rar png_swf_101.rar (285,6 KB, 20x aufgerufen)
  Mit Zitat antworten Zitat
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
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 14:08 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz