Vampyre Imaging Library Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Imaging 0.26.4 Released!

Author Topic: Canvas resize on TMultiImage?  (Read 565 times)

GunSmoker

  • Guest
Canvas resize on TMultiImage?
« on: 16 July 2009, 10:19:41 »

Hi,

How can I resize canvas of the image?
Changing Width or Height seems resize image instead of clipping or extending canvas itself.
Should I create new image and use CopyTo method?
Logged

Galfar

  • Administrator
  • Imaging User
  • *****
  • Offline Offline
  • Posts: 249
    • ICQ Messenger - 327174200
    • View Profile
    • Galfar's Homepage
    • Email
Re: Canvas resize on TMultiImage?
« Reply #1 on: 16 July 2009, 11:34:37 »

Create new image and copy pixels from desired clip rect is the only way now.
Method in TMultiImage for this would basically just do the same thing. 
Logged

GunSmoker

  • Guest
Re: Canvas resize on TMultiImage?
« Reply #2 on: 16 July 2009, 15:16:43 »

Ok, thanks.

I just thought that may be I'm missing something, because TMultiImage's Width/Height behaviour is inconsistent with usual TImage's Width/Height.
Logged
 

Page created in 0.08 seconds with 18 queries.