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
Lazaris IDE v4.4 - extrem...
by
backprop
[
Today
at 02:16:58 pm]
Who is absent from year 2...
by
backprop
[
Today
at 01:52:41 pm]
[RESOLVED] Log in to web ...
by
rvk
[
Today
at 01:26:35 pm]
FPC error when using O3
by
marcov
[
Today
at 01:24:03 pm]
Status of FPC 3.4.0 or FP...
by
marcov
[
Today
at 12:54:39 pm]
Debian removes FPC/Lazaru...
by
dbannon
[
Today
at 12:35:31 pm]
Help with diabetes projec...
by
slicke
[
Today
at 12:13:28 pm]
it2play - IT/S3M module r...
by
Lulu
[
Today
at 10:00:59 am]
FPC and Lazarus coding st...
by
Martin_fr
[
Today
at 09:21:46 am]
Free Pascal for a small e...
by
cdbc
[
Today
at 07:06:42 am]
Transparent Form: Some Th...
by
Xenno
[
Today
at 04:50:53 am]
FPCUnit returns 2 error l...
by
n7800
[
Today
at 02:43:55 am]
Defaults for features
by
Martin_fr
[
Today
at 02:07:48 am]
TLazSerial : serial port ...
by
CM630
[February 06, 2026, 11:02:03 pm]
function intersect in laz...
by
wp
[February 06, 2026, 08:30:39 pm]
LCL Web Native with D2Bri...
by
xinyiman
[February 06, 2026, 04:52:10 pm]
Notetask 1.1.0 - Free cro...
by
AlexanderT
[February 06, 2026, 02:33:56 pm]
Rolling releases Lazarus[...
by
marcov
[February 06, 2026, 02:07:36 pm]
lazarus IDE anchordock ba...
by
szlbz
[February 06, 2026, 12:53:12 pm]
Upload multipart POST req...
by
OH1KH
[February 06, 2026, 11:53:17 am]
Ininside ProjectSession, ...
by
d2010
[February 06, 2026, 10:34:50 am]
Recommendations for wasm3...
by
temp0
[February 06, 2026, 03:47:38 am]
Lazarus for Windows on aa...
by
msintle
[February 06, 2026, 01:02:01 am]
ListBox MeasureItem
by
jamie
[February 05, 2026, 11:02:02 pm]
Feature announcement: Fun...
by
PascalDragon
[February 05, 2026, 09:29:34 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: how can I resize the image contained in a canvas... (Read 3543 times)
xinyiman
Hero Member
Posts: 2260
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: 2260
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