User Profile
Collapse
-
thank you but "pic1" and "pic2" are the "name property" of every picture box not the name of picturs. and yes i dont know really what should be "picnum" a string ...an object...or other. i will thank you more if you modify this code -
how to switch between picture boxes by the name ?
we have two picture boxes by names of "pic1" and "pic2"
we want to maintain parameters "isize" and "jsize" with parameter "picnum".
the code dosent work whats the problem?
Code:dim picnum as string if a=1 then picnum=pic1 else picnum=pic2 end if With picnum isize = .Height jsize = .Width end with
-
How to fix if-elif-else syntax error?
hi
the problem is a syntax error that highlights pink the "elif" in the program just that. this code is to water mark picture "test.jpg" with the water mark of "model.jpg" with a mark on a white background the cod is:
Code:import Image,math model = Image.open("model.jpg") test = Image.open("test.jpg") x=test.size[0] y=test.size[1] im = Image.new("RGB",(x,y))
-
Why does if else statement always return if code even when failed?
The problem is that the "if-else" command doesn't work properly. the program always returns entire "else" commands means all black pixels in end.bmp . but there is some pixels that have the same values "(224 238 223)" in "model1.jpg ".
thanks for your help.
Code :
Code:import Image model1 = Image.open("model1.jpg") test = Image.open("test.jpg")
Last edited by Niheel; Feb 8 '11, 12:11 AM. -
How to mention a specific frame when the projector window is inactive?
how to mention a specific frame when the projector window is inactive? is there any command that show us if the window is active or inactive. -
thank you bvdet that is helpful for me. also i have question about putpixel command it seams to be slow . how can we use other commands for better response? completing the above code.Leave a comment:
-
import Image
im = Image.open("dog .jpg")
im.rotate(45).s how()Leave a comment:
-
How to write and save image from data?
in simple word i want to have an image saved by the program to hard disc that the size is 100x100 pixels the left upper pixel is black and the right lower pixel is white. this is not my problem but as an example will help me to know how use commands to wright an image from data.
thank you for your help.
No activity results to display
Show More
Leave a comment: