Reputation: 4545
Is there any good component for Delphi to create a frame like the messenger frame around a photo?
Upvotes: 1
Views: 594
Reputation: 43033
Take a look at our MicroPic very small tool. http://bouchez.info/micropic.html
You've got the source code on the page. It could be interesting for you, as start for drawing a custom frame to any picture. I wrote this years ago, just to help my girl friend with her web site, without using photoshop before inserting pictures...
Upvotes: 1
Reputation: 108963
This frame is basically just a bitmap. There seems not to be any function in the Windows API to draw this. Instead, a previous questioner here at SO found that this (or at least a very similar) bitmap is stored as a resource bitmap in explorer.exe
, if I recall correctly.
Hence, to write a Delphi component displaying a bitmap inside such a frame would be trivial -- one just have to copy this bitmap. However, I feel this would be wrong (copyvio or at least bad manners). But of course you can draw your own version of a frame /using The GIMP or Photoshop/, and include it as a bitmap.
Also notice that it is very easy to apply bitmap effects, such as hue shifts, to a bitmap during run-time.
Upvotes: 3