Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 importing a picture with transparency...
Index -> Programming, Turing -> Turing Help
Goto page 1, 2  Next
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
atrain




PostPosted: Wed Feb 23, 2005 9:30 pm   Post subject: importing a picture with transparency...

is it posible to import a picture with transparency..., and can i mirror it and keep the transparency??
Sponsor
Sponsor
Sponsor
sponsor
zylum




PostPosted: Wed Feb 23, 2005 9:48 pm   Post subject: (No subject)

by transparency, do you mean one of the colours is transparent or the whole image has a certain alpha value? ie 50% transparent
cycro1234




PostPosted: Wed Feb 23, 2005 10:42 pm   Post subject: (No subject)

Turing has the command Pic.SetTransparentColour

The Pic.SetTransparentColor procedure sets the color in the picture that should be considered transparent when the picture is drawn using the picMerge or picUnderMerge modes. If no color is specified, then the default background color (colorbg, usually white) is used as the transparent color.
atrain




PostPosted: Thu Feb 24, 2005 1:55 pm   Post subject: (No subject)

thats what i need ^^... Thanx...


Im running turing on linux, so i dont have windows help. aka: cant look up these things...
cycro1234




PostPosted: Thu Feb 24, 2005 4:00 pm   Post subject: (No subject)

NP Smile And if u need nething else, just ask.
atrain




PostPosted: Thu Feb 24, 2005 10:22 pm   Post subject: (No subject)

nope... still doesnt work

i used "put View.WhatColor(x,y)"

Im inporting a picture of a car, and i want to remove the white background...

i did

Pic.SetTransparentColour (car,0)
but i still get a border on the car....
atrain




PostPosted: Thu Feb 24, 2005 10:27 pm   Post subject: (No subject)

This SHOULD make the car have a white background...

code:

Pic.ScreenLoad ("Turing/picture.jpg", 0, 0, picCopy)

var car :int
car := Pic.New (0, 0, 240, 99)
Pic.SetTransparentColour (car, 0)
colorback (1)
cls

Pic.SetTransparentColour (car, 0)
Pic.Draw (car, 0, 0, picCopy)
ssr




PostPosted: Thu Feb 24, 2005 10:27 pm   Post subject: (No subject)

If thats all u r doing why not just use
code:
Pic.Merge
Question 8)
Sponsor
Sponsor
Sponsor
sponsor
Bacchus




PostPosted: Fri Feb 25, 2005 6:56 am   Post subject: (No subject)

ya in an above post they Cycro mentionded that, i guess Atrain just missed that part
atrain




PostPosted: Sun Feb 27, 2005 1:59 am   Post subject: (No subject)

i dont have turing help, couse im on linux...

thanx, ill try and use that!!!
atrain




PostPosted: Sun Feb 27, 2005 2:01 am   Post subject: (No subject)

almost worked, but it only changed part of it 2 blue...
Flikerator




PostPosted: Sun Feb 27, 2005 8:39 am   Post subject: (No subject)

What program can I use to give my pictures transparency? Kinda off topic but still relative.
mike200015




PostPosted: Sun Feb 27, 2005 11:24 am   Post subject: (No subject)

u could use photoshop.. if thats wat u mean by wat program can u use to do that
Flikerator




PostPosted: Sun Feb 27, 2005 11:30 am   Post subject: (No subject)

mike200015 wrote:
u could use photoshop.. if thats wat u mean by wat program can u use to do that


Yah thats what I mean. I used up my one month free of photoshop Sad
mike200015




PostPosted: Sun Feb 27, 2005 11:35 am   Post subject: (No subject)

Sad that sux.. if u want to.. u could always download it.. lol.. not that i recommend that or nething Wink Razz
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 2  [ 28 Posts ]
Goto page 1, 2  Next
Jump to:   


Style:  
Search: