Hi, ich hab bisher noch kaum Ahnung von Delphi (haben erst vor hmmm ich glaub 2 Monaten mit Delphi in der Schule angefangen) und bräuchte deswegen mal ein bisschen Hilfe.
Ich hab mir meine eigene Komponente gebastelt - einen ImageButton und zusätzlich TPNGImage installiert -jetzt will ich bei png's die aktive Fläche bei einem Alpha Wert von 0 deaktiveren - dafür stellt TPNGObject die property alphascanline zur Verfügung. In meinem, von TImage abgeleiteten Button, kann ich auch pngs einlesen...nur steht die property alphascanline nicht zu verfügung. In der Hilfe zu TPNGObject steht:
| Zitat: |
| This is the main object for the component. By default it's derived from TGraphic in order to integrates with Delphi and to be able to be used with TPicture, TImage and many others. To gain access to when using TImage or TPicture, typecast the TImage.Picture.Graphic or TPicture.Graphic to TPNGObject. The object provides access to some interesting and important features. |
"...typecast the TImage.Picture.Graphic or TPicture.Graphic to TPNGObject..."<-?? Wie soll das gehen? TImage/Graphics umschreiben, oder wie, oder wer, oder was?
Danke für jede Hilfe =)
Moderiert von
Peter Lustig (11:40, 02.05.2004): Zweite Frage entfernt