How to resize an PNG image using DrawEx or StretchDraw functions? Can you provide an example?
procedure Resize;
var
PNGImage: TdxPNGImage;
begin
PNGImage := TdxPNGImage.Create;
PNGImage.SetBitmap( <Some bitmap> );
// <How to resize here?>
PNGImage.SaveToFile( <Some file>);
PNGImage.free;
end;
Thnx
Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Hi German,
Thank you for the question and please accept our apologies for the delay in answering.
Our TdxPNGImage is just a descendant of the TGraphic class and provides no additional method to resize an image. So, you should resize our PNG image as a standard TBitmap image. I've attached a sample project illustrating how you can do this, using the StretchDraw method.
Thanks
Dimitros
Thanks Dimitros !
You're welcome, German. Please feel free to contact us in case of any difficulty. We are happy to help you at any time.
Dimitros