|
I haven't done such a fade in filter but for a smooth
transition--one image fading to another--I'd guess you
just need to scale each pixel's R,G & B values in the
'old' image toward the R,G & B values of the corresponding
pixels in the new image.
e.g if you want to do a full fade from old image to identically
sized new image in 10 steps :
for ( each pixel position in the image(s) ){
<font color=#FBEDB5>__<font color=#000000>for (Step = 1; Step<=10; Step++){
<font color=#FBEDB5>____<font color=#000000>IntermediateR = OldR + (NewR-OldR)/10 * Step;
<font color=#FBEDB5>____<font color=#000000>IntermediateG = OldG + (NewG-OldG)/!0 * Step;
<font color=#FBEDB5>____<font color=#000000>IntermediateB = OldB + (NewB-OldB)/10 * Step;
<font color=#FBEDB5>__<font color=#000000>}
}
(Be sure to use signed types for the RGB values so that
the scaling will correctly handle the cases where R, G or B
in the old image are larger than the corresponding R, G or B
value in the new image.)
If you want to fade to (or from) a 'blank' screen just substitute
the constant 'blank' RGB values for the new (or old) image pixel
position RGB values as required.
Steve T
|
|
|
|
|
Thanks I will try it
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
hi i am making a appliocation which facialates the procedure of student admission in a college...
i hav made a database name "Students" which has 3 tables "student","fees","course" the objective of each table is clear by its name i suppose...
now i have made a odbc object to link the databse in my mfc project...
i want to know that how i use the data of all the 3 tables at the same time...
ie i have designed 3 forms in the same project for each of the 3 tables...now i want to link the tables with the forms...how to do so???please help....
i wud b thankful...this is my first question...so please sorry for making it a long one!!!!
thanks manav
|
|
|
|
|
|
thanks a lot but i am unable to find any info regar4ding how to use multiple tables in my application...please help....
|
|
|
|
|
smartymanav wrote:
but i am unable to find any info regar4ding how to use multiple tables in my application
Have a Try on this Mr. Manav,
http://www.codeproject.com/database/caaadoclass1.asp[^]
I Believe it's yours personel project at MNR
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
thanks again but i am using odbc...
no its not my personal project in my college...i am doing training in stpi and they hav given me this project to design for a college(private)..they have said that if they lie it they will recomend it to the private colege...
please help...
i just want to know how to use multiple tables....i know to make use of the database which only has a single table in vc++ using odbc...
thanking u
|
|
|
|
|
Then Use this:-
http://www.codeproject.com/database/caaodbcclass.asp[^]
Buddy,Take my advice:- learn Goggling, otherwise it very difficult to survive in Software Field
smartymanav wrote:
...i am doing training in stpi
STPI : Stands for Software Technology Park or India. AFAIK, there are more than 10 STPI in India. In which one are you working!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
i am in noida branch of stpi....
ya i have reached this site by googling only!!!
|
|
|
|
|
smartymanav wrote:
i am in noida branch of stpi....
There are three Stpi in Noida, One in Sec 29 Ganga Shopping Complex, Second Logix Park Sector 16 and Last One Electronic City Sec 62-63.
In which One are you working
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
hey u know a lot!!!
i am in ganga shopping complex sec 29.....
|
|
|
|
|
smartymanav wrote:
am in ganga shopping complex sec 29.....
So u are in birlaSoft
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
do u live nearby!!!!
no actually birla soft is also here...
i am in stpi only....they have a training division....they give out projects there
byeee
|
|
|
|
|
hey do u live near by!!!!
ya u r rite...birla soft is also here but i am in stpi only
they have a training division and they give out projects here
byeeee
|
|
|
|
|
smartymanav wrote:
hey do u live near by!!!!
Nope Work NearBY
smartymanav wrote:
they have a training division and they give out projects here
Ok nice
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
|
smartymanav wrote:
where????
Thats Secret
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
Your post is a little confused.
Do you want to populate each form with data from the matching database table or do you want to select data from multiple tables and display in one form?
Which Database classes are you using? CDatabase? ADO?
I recommend you use ADO, which you can use your ODBC connection with.
Have a look at these classes[^], as they'll make it easier.
Michael
CP Blog [^] Development Blog [^]
|
|
|
|
|
thanks a lot Micheal
i am usinf Cdatabase
ya i want to actually carry out both these jobs....i have 3 forms one each for the 3 tables...for eg student form for student table...but student form will have link to the course form and will be linked by courseid....u r getting it na....
and similarly fees table will b linked to student by regno field...
and i am not able to populate data in the usual way i do it for one table...
consider the foll:
RFX_Text(pFX, _T("[Student].[FatherName]"), m_FatherName);
this is the for linking m_FatherName varaible with the FatherName field in student table...
is this correct???
please help
thanks
|
|
|
|
|
smartymanav wrote:
i want to know that how i use the data of all the 3 tables at the same time...
Search MSDN for examples of INNER JOIN.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Hi!
What I get is a HDC with some stuff on it and all I have to do is draw a string over that like watermark. This string can be anything of any color and any angle.
After my drawing the resultant is a Postscript output.
Now I am drawing watemark string with ROP2 MERGE_PEN but the string is always on the top and the data below is hidden. Where as I want this string to be transparent so that every thing is vissible.
I have tried with different ROPS but the result is same.
One more interesting I found is
If I draw with Hatched brush then O/p is OK although it is hatched but is transparent but if I draw using Pattern Brush then it is not transparent.
Pls. let me know if there is some another way to draw a transparent text.
Thanks
|
|
|
|
|
Is there any problem with using GDI+ ? Then it's easy.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Well I dont prefer to use GDI+. Customer may not have it...
It will be great if you can suggest some way using just windows API's
Anyways I would still like to know how to do using GDI+ just for my knowledge...
Thanks
Naveen
|
|
|
|
|
Naveen_mah wrote:
Customer may not have it...
Yep, you'd have to ship it.
Naveen_mah wrote:
It will be great if you can suggest some way using just windows API's
Draw the text on black and then use TransparentBlt ?
Naveen_mah wrote:
Anyways I would still like to know how to do using GDI+ just for my knowledge...
In GDI+ you can set the transparency of a solid brush, which you'd then use to draw the text.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Christian Graus wrote:
Draw the text on black and then use TransparentBlt ?
So does that mean to make a bitmap with text and black background and then do TransparentBlt on original DC?
|
|
|
|