User Profile

Collapse

Profile Sidebar

Collapse
sbtunx
sbtunx
Last Activity: Mar 7 '11, 08:20 PM
Joined: Feb 3 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • 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
    See more | Go to post

    Leave a comment:


  • 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
    See more | Go to post

  • sbtunx
    started a topic How to fix if-elif-else syntax error?

    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))
    ...
    See more | Go to post

  • 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")
    ...
    See more | Go to post
    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.
    See more | Go to post

  • sbtunx
    replied to How to write and save image from data?
    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.
    See more | Go to post

    Leave a comment:


  • sbtunx
    replied to How to draw the grid line to an image
    import Image
    im = Image.open("dog .jpg")
    im.rotate(45).s how()
    See more | Go to post

    Leave a comment:


  • sbtunx
    started a topic How to write and save image from data?

    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.
    See more | Go to post
No activity results to display
Show More
Working...