Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TImage.proportional

Status
Not open for further replies.

siu01jam

Programmer
Oct 2, 2003
12
GB
I am using a TImage to display an image assigned at run time. I am using the "proportional" and "stretch" options depending what has been selected by the user. The changes are not made to the actual image, only to the way it is displayed. I want to save the image as it is displayed (after the effects have taken place). Can anyone please tell me how to do this?

var temp: TPicture; EditDisplay: TImage;

EditDisplay.Proportional:= True;
EditDisplay.Stretch:= False;
temp:= EditDisplay.picture; // <- here editdisplay gives me the unaffected image
 
You can capture the Screen (not the whole just the image by its HDC )

Spent
spentbg@yahoo.com


 
I would only want to capture the image in this case . . .

I am trying to get the bitmap image that is displayed in a TImage after proportional and stretch have taken effect. I think maybe a better way would be to write my own resize function and pass the image to that before displaying it, then to do away with the TImage proportional and stretch assignments.

Screen capture seems a bit of a long winded way to do this as I would need to display the bitmap in the TImage, capture the screen, isolate the new bitmap from within the screen capture, then save it into my data structure before redisplaying it in the TImage.

Also, I will need to do this many times so it might be a bit heavy on processing.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top