Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » TopWindow&PopUp, TrayIcon » Borderless TopWindow
Re: Borderless TopWindow [message #8163 is a reply to message #6613] Tue, 13 February 2007 16:10 Go to previous messageGo to previous message
atmks is currently offline  atmks
Messages: 33
Registered: July 2006
Member
luzr wrote on Mon, 20 November 2006 21:55

Well, TheIDE splash-screen ...
Mirek


hi

i created(loaded) a image with JpgEncoder...
Size MakeLogo(Ctrl &parent, Array<Ctrl>& ctrl) {
   ImageCtrl& l = ctrl.Create<ImageCtrl>();
   Image logo = jpegencoder.LoadImageFile( "logo.jpg",0 );
   l.SetImage(logo);
   
   parent.Add(.....);
}


but i dont know, how can i resize a image(logo)
can someone help me?

thx

edit:
i finded a solution
...
Size scale = Size(100,100);
PixelArray x = jpegencoder.LoadArrayFile( "logo.jpg",0).pixel;
PixelArray dest(sz);
PixelCopyAntiAlias(dest,scale,x,x.GetSize();
Image logo = PixelArrayToImage(dest)
l.SetImage(logo);
....

[Updated on: Wed, 14 February 2007 11:29]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem with SetTimeCallback in TrayIcon
Next Topic: runtime tray icon? Draw a number?
Goto Forum:
  


Current Time: Sun Jun 15 15:38:53 CEST 2025

Total time taken to generate the page: 0.05299 seconds