Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Graphics and Multimedia
»
Graphics
(Moderator:
Ask
) »
how can I resize the image contained in a canvas...
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Finding List of Fonts & P...
by
J-G
[
Today
at 03:48:12 pm]
Identify network devices
by
LemonParty
[
Today
at 03:44:03 pm]
Application triggers mess...
by
JanRoza
[
Today
at 03:29:38 pm]
Create small language
by
Packs
[
Today
at 03:23:07 pm]
Star Wars Galaxian
by
Guva
[
Today
at 03:23:04 pm]
TyControls: a custom-draw...
by
Antek
[
Today
at 02:36:39 pm]
PO-Editor MyLangEdit3 now...
by
CM630
[
Today
at 02:36:13 pm]
Automatic generation of *...
by
CM630
[
Today
at 02:19:12 pm]
how to connect to mariadb...
by
Mike.Cornflake
[
Today
at 12:25:31 pm]
New charts
by
Boleeman
[
Today
at 11:24:34 am]
Unleashed Pascal (async/a...
by
Fibonacci
[
Today
at 08:11:20 am]
SPAM
by
paweld
[
Today
at 07:17:10 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: how can I resize the image contained in a canvas... (Read 3605 times)
xinyiman
Hero Member
Posts: 2261
how can I resize the image contained in a canvas...
«
on:
March 27, 2012, 08:30:22 am »
how can I resize the image contained in a canvas of say 20%?
of course maintaining the image proportions?!
Logged
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1
felipemdc
Administrator
Hero Member
Posts: 3538
Re: how can I resize the image contained in a canvas...
«
Reply #1 on:
March 27, 2012, 08:53:10 am »
There is:
http://lazarus-ccr.sourceforge.net/docs/lcl/graphics/tcanvas.copyrect.html
I don't know if it works in all widgetsets correctly if the source and destination canvas are the same, you can always create a TBitmap of the destination size and use it's canvas as the destination canvas for the CopyRect operation.
Logged
xinyiman
Hero Member
Posts: 2261
Re: how can I resize the image contained in a canvas...
«
Reply #2 on:
March 27, 2012, 10:40:27 am »
Thank you
Logged
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Graphics and Multimedia
»
Graphics
(Moderator:
Ask
) »
how can I resize the image contained in a canvas...
TinyPortal
© 2005-2018