Thema: Delphi Help with Graphics32

Einzelnen Beitrag anzeigen

Medium

Registriert seit: 23. Jan 2008
3.686 Beiträge
 
Delphi 2007 Enterprise
 
#2

Re: Help with Graphics32

  Alt 19. Jan 2010, 15:24
Zitat von WojTec:
I hope you understand my not very well EN
It's better than most in a non-english community

Do you mean with your first question, that you want to have some sort of a mask, and everything under it should turn into grayscales? If so, you'd be best served with more bitmaps than just one. One containing the original image, one containing the mask, and a third that has the combined result. On the way to the result, you have parameters such as an offset to the mask under your control. But there is no such thing as attaching a filter to a layer. A layer is nothing more than second bitmap on top of another, and as such may only hold color-values like every ordinary bitmap.

As for AA, I don't know the texture blending demo, but it would help if you could clearify what "AA" means to you here. Usually, when relating to bitmaps, AA is nothing more than a smoothing filter, or a downscaling + some proper interpolation.

Saving in layers is not supported natively, there is no .GR32 Format or anything like that. You would have to either save each layer as a separate lile, implement your own export-filter for a format that supports layers (lots of format descriptions can be found here), or you develop your very own bitmap file format that supports all the features you may need.
"When one person suffers from a delusion, it is called insanity. When a million people suffer from a delusion, it is called religion." (Richard Dawkins)
  Mit Zitat antworten Zitat