Results 1 to 2 of 2

Thread: how to scale a picture/image?

  1. #1
    Join Date
    May 2010
    Posts
    100
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11
    Thanks
    1

    Default how to scale a picture/image?

    Hi,all

    I want to display an image in 35*35 size insize TFT screen of 480*800. The image can be in fromat(JPG,JPEG,BMP,PNG,etc).
    now,if i have image of large size say im MB and of size larget than 35*35,than what can i do?And how can i do this?

    I am very new to all this.so if any one has the code kindly suggest me the way.


    Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    21
    Thanked 418 Times in 411 Posts

    Default Re: how to scale a picture/image?

    Have a look at QPixmap.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. Qt Picture change
    By Raymond in forum Qt Programming
    Replies: 2
    Last Post: 22nd February 2010, 04:19
  2. Getting Chart as picture
    By codeman in forum Qt Programming
    Replies: 4
    Last Post: 24th November 2009, 13:39
  3. can't load picture
    By aoo7wangyan in forum Qt Programming
    Replies: 9
    Last Post: 13th July 2009, 15:59
  4. Picture on a button
    By zgulser in forum Qt Tools
    Replies: 4
    Last Post: 13th January 2009, 05:03
  5. resize a picture
    By omega36 in forum Qt Programming
    Replies: 2
    Last Post: 9th January 2009, 15:34

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.