We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › GETTING PIMAGE INTO A SHAPE eg. rectangle..help!!!
Page Index Toggle Pages: 1
GETTING PIMAGE INTO A SHAPE eg. rectangle..help!!! (Read 563 times)
GETTING PIMAGE INTO A SHAPE eg. rectangle..help!!!
Mar 20th, 2007, 7:17am
 
hi im new to processsing....and i do need some help with my project...


i want to add an image which is been extracted from a data folder...and than displayed to a shape eg. RECTANGLE....which means whatever the resolution of the image is  it resizes to the shape's resolution. could i just get any simple example which i could work on with...would be really a gr8 help..thanx....


----------
Re: GETTING PIMAGE INTO A SHAPE eg. rectangle..hel
Reply #1 - Mar 20th, 2007, 7:22am
 
you mean like a texture? try the example code from the reference:

http://processing.org/reference/texture_.html

F
Re: GETTING PIMAGE INTO A SHAPE eg. rectangle..hel
Reply #2 - Mar 23rd, 2007, 4:37am
 
hey thanks alot for the feeedback...really appreciate it...ive actually got it to work already...just that now im stuck with another problem.. where i wish to upload a range number of pictures from the data folder... do i need to type PImage for more than once...meaning for each pics i have to type..is there anyway i could set a range...eg.. picture1,jpg - picture10.jpg...?...

really wish to know if this is possible and if so how it actually works.,.thanx....
Page Index Toggle Pages: 1