473,403 Members | 2,222 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Stretching a bitmap

Is it possible to import a bitmap and stretch it to fit a defined area
with wxPython? If so, could someone point me to any relevent web
reference on the subject?

Thanks in advance

David

Nov 22 '05 #1
6 2036
Try ImageMagik: http://www.imagemagick.org/

Nov 22 '05 #2
Try ImageMagik: http://www.imagemagick.org/

Nov 22 '05 #3
I need to be able to do this on the fly within a WX frame. I think I
have found it though. There is a resize function in the image class in
the _core code of wxPython. All I have to do now is learn how to
access the bugger. Syntax anyone ??

Nov 22 '05 #4
I need to be able to do this on the fly within a WX frame. I think I
have found it though. There is a resize function in the image class in
the _core code of wxPython. All I have to do now is learn how to
access the bugger. Syntax anyone ??

Nov 22 '05 #5
Python Imaging Library (PIL) can size bitmaps. I use
it to create thumbnails or to size bitmaps quite often.
There may be a "wxPython" built-in for this also, but
I don't know what it would be.

-Larry Bates

David Poundall wrote:
Is it possible to import a bitmap and stretch it to fit a defined area
with wxPython? If so, could someone point me to any relevent web
reference on the subject?

Thanks in advance

David

Nov 22 '05 #6
Python Imaging Library (PIL) can size bitmaps. I use
it to create thumbnails or to size bitmaps quite often.
There may be a "wxPython" built-in for this also, but
I don't know what it would be.

-Larry Bates

David Poundall wrote:
Is it possible to import a bitmap and stretch it to fit a defined area
with wxPython? If so, could someone point me to any relevent web
reference on the subject?

Thanks in advance

David

Nov 22 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: David Poundall | last post by:
Is it possible to import a bitmap and stretch it to fit a defined area with wxPython? If so, could someone point me to any relevent web reference on the subject? Thanks in advance David
4
by: Arthur Dent | last post by:
Hello all... i have a really frsutrating problem here... This is only happening in IE (6 & 7b2), Mozilla and Netscape are both OK. I have a top-level table with a width of 760px, so it should be...
7
by: Fir5tSight | last post by:
Hi All, I used the following code in C#: using System.Drawing; //blah blah blah Bitmap bmp = new Bitmap();
14
by: eliss.carmine | last post by:
I'm using TCP/IP to send a Bitmap object over Sockets. This is my first time using C# at all so I don't know if this is the "right" way to do it. I've already found out several times the way I was...
8
by: Joergen Bech | last post by:
Suppose I have Dim bm As New Bitmap(16, 16,Imaging.PixelFormat.Format8bppIndexed) I cannot use Dim g As Graphics = Graphics.FromImage(bmdest) Dim hdc As IntPtr = g.GetHdc() as the...
6
by: \Frank\ | last post by:
I trying to learn what a Bitmap is. Not a Managed Bitmap Object but one that, for example, comes from the clipboard with CF_BITMAP. I'm guessing that a CompatableBitmap is an array of indices...
2
by: Peter Oliphant | last post by:
I want to create a new Bitmap which is a portion of an existing Bitmap. For example, if I have a Bitmap that is 100x100 in size I might want to create a new Bitmap that is equivalent to the one...
5
by: =?Utf-8?B?QVRU?= | last post by:
I have a bitmap of 100X100. On the load, the bitmap is created by a function (createimage()). On my OnPaint, I draw the image back to the screen (e.Graphics.DrawImage( bitmap, destrect)). Now,...
5
Ali Rizwan
by: Ali Rizwan | last post by:
Hi all, I m stretching my form and i want if i stretch its position after stretching must be in middle of screen or i want to stretch centerly. Thanx >> ALI <<
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.