Fading a bitmap
I am trying to do a fade on a symbol against the backdrop of
a bitmap picture.
I have a solid shape, a movie clip from the library that I
apply: "color, Advanced, settings" I take the alpha down to about
-93.
I can now see through my solid into the picture behind, but I
want to use motion so that it fades slowly.
If I put in a keyframe at say 20 I can do this as a movie
clip, but movie clips loop so I would like to use a graphic
so that it only plays once.
Is it possible to do a fade effect using motion and a
graphic?
Thank You
Kevin
you can use a graphic so you can play it only once or use a
movie clip and add a stop action where
you want - did you try it and find it didnt work?
~~~~~~~~~~~~~~~~
--> Adobe Certified Expert
--> www.mudbubble.com
--> www.keyframer.com
~~~~~~~~~~~~~~~~
kevin raleigh wrote:
> I am trying to do a fade on a symbol against the
backdrop of a bitmap picture.
> I have a solid shape, a movie clip from the library that
I apply: "color,
> Advanced, settings" I take the alpha down to about -93.
> I can now see through my solid into the picture behind,
but I want to use
> motion so that it fades slowly.
> If I put in a keyframe at say 20 I can do this as a
movie clip, but movie
> clips loop so I would like to use a graphic
> so that it only plays once.
>
> Is it possible to do a fade effect using motion and a
graphic?
>
> Thank You
> Kevin
>
Similar Messages
-
I use Loader class to load a picture,such as example.jpg,and I know if I want to realize fade in effect,I can use following code in Event.ENTER_FRAME:
sprite.alpha+=0.05
When I run above code,I can get a fade in effect of example.jpg. But the fade in effect is for the whole example.jpg, now I want to fade in the example.jpg with a special curve,such as number 9,the example.jpg fade in along number 9 curve. I guess it shoud have a mathematical model can realize this special fade in effect,anyone could give me the model of fade in along special curve?
Any Idea will be appreciated.
Thanks.>>what do you mean by fading a bitmap with a special curve? and what's the number 9 have to do with a curve?
I mean I show the bitmap with fading in effect, the fading in along with a curve,the curve shape like number 9,like follows:
one step
two step:
three step
How to realize above fading in effect? A source code is better.
Thanks in advance -
Zooming a loaded bitmap around the image center
Hi,
I try to zoom a loaded PNG where the center of the image
stays at the
middle of the stage.
I don't know everyting I do leads me to a clip moving away
from the
center of the stage.
What I do is zooming a clip that contains the clip that is
loaded. I set
the loaded Clip at the negative half of its size, so it
should aprear in
the middle.
onClipEvent(load){
pic_container_mc.loadMovie("pic.png");
//picLoaded() < it is called from the clip
// pic_container_mc at onLoad event
// when the bytestotal are > 1000
function picLoaded(){
pic_container_mc._alpha = 0;
pic_container_mc.onEnterFrame= function(){
this._alpha = this._alpha * 1,2;
this._alpha++;
_parent._xscale++;
_parent._yscale = _parent._xscale;
w = pic_container_mc._width;
h = pic_container_mc._height;
pic_container_mc._x = - w/2;
pic_container_mc._y = - h/2;
// half of the strange size
this._x = 512;
this._y = 384;
Any ideas?Craig Grummitt wrote:
> i'm not sure of the intention of some of your code as
the indentations got lost
- picture of different size
- with an motive with its center in the middle of the bitmap
- zoom it, but keep the center point at one position (center
of the stage)
> and i can't compile it as it's written.. also I'm not
sure of some of the
> things you were doing like this line:
> this._alpha = this._alpha * 1,2;
oh, thats just for fading the picture in, but not important
here.
> but anyway i've edited the function in a way that works
for me. see if this
> solves your problem.
did you attatch the code? can't see it in the newsgroup
forum. can you
please post it again.
Thanks for your help -
Liquify (CS6) is fading the affected area
When I use liquify under CS6 (not previous versions of Photoshop), the affected area (as defined by a bounding box) appears to be strangely faded if it had any alpha on it.
Example: I make a smooth gradiant from full-alpha black to nothing. I then use liquify to make squiggles in the lower right. The result: a rectangular area defined by the squiggles is visibly lighter than the surrounding region.
http://i45.photobucket.com/albums/f57/ADamiani/LiquifyProblem.png
Seems to work fine if (but only if) the whole image is fully opaque.
Not really sure what to do about this.Adobe Photoshop Version: 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00) x64
Operating System: Windows 7 64-bit
Version: 6.1 Service Pack 1
System architecture: Intel CPU Family:6, Model:10, Stepping:7 with MMX, SSE Integer, SSE FP, SSE2, SSE3, SSE4.1, SSE4.2
Physical processor count: 4
Processor speed: 3093 MHz
Built-in memory: 8175 MB
Free memory: 5588 MB
Memory available to Photoshop: 7243 MB
Memory used by Photoshop: 60 %
Image tile size: 128K
Image cache levels: 4
OpenGL Drawing: Enabled.
OpenGL Drawing Mode: Basic
OpenGL Allow Normal Mode: True.
OpenGL Allow Advanced Mode: True.
OpenGL Allow Old GPUs: Not Detected.
Video Card Vendor: ATI Technologies Inc.
Video Card Renderer: AMD Radeon HD 6800 Series
Display: 2
Display Bounds:= top: 0, left: -1600, bottom: 1200, right: 0
Display: 1
Display Bounds:= top: 0, left: 0, bottom: 1080, right: 1920
Video Card Number: 1
Video Card: AMD Radeon HD 6800 Series
OpenCL Version:
Driver Version: 8.982.0.0
Driver Date: 20120727000000.000000-000
Video Card Driver: aticfx64.dll,aticfx64.dll,aticfx64.dll,aticfx32,aticfx32,aticfx32,atiumd64.dll,atidxx64.d ll,atidxx64.dll,atiumdag,atidxx32,atidxx32,atiumdva,atiumd6a.cap,atitmm64.dll
Video Mode: 1920 x 1080 x 4294967296 colors
Video Card Caption: AMD Radeon HD 6800 Series
Video Card Memory: 1024 MB
Video Rect Texture Size: 16384
Serial number: 91198198868649495769
Application folder: C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\
Temporary file path: C:\Users\ANTHON~1\AppData\Local\Temp\
Photoshop scratch has async I/O enabled
Scratch volume(s):
D:\, 465.8G, 179.0G free
C:\, 59.5G, 4.22G free
Required Plug-ins folder: C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\Required\
Primary Plug-ins folder: C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\Plug-ins\
Additional Plug-ins folder: not set
Installed components:
A3DLIBS.dll A3DLIB Dynamic Link Library 9.2.0.112
ACE.dll ACE 2012/01/18-15:07:40 66.492997 66.492997
adbeape.dll Adobe APE 2012/01/25-10:04:55 66.1025012 66.1025012
AdobeLinguistic.dll Adobe Linguisitc Library 6.0.0
AdobeOwl.dll Adobe Owl 2012/02/09-16:00:02 4.0.93 66.496052
AdobePDFL.dll PDFL 2011/12/12-16:12:37 66.419471 66.419471
AdobePIP.dll Adobe Product Improvement Program 6.0.0.1654
AdobeXMP.dll Adobe XMP Core 2012/02/06-14:56:27 66.145661 66.145661
AdobeXMPFiles.dll Adobe XMP Files 2012/02/06-14:56:27 66.145661 66.145661
AdobeXMPScript.dll Adobe XMP Script 2012/02/06-14:56:27 66.145661 66.145661
adobe_caps.dll Adobe CAPS 6,0,29,0
AGM.dll AGM 2012/01/18-15:07:40 66.492997 66.492997
ahclient.dll AdobeHelp Dynamic Link Library 1,7,0,56
aif_core.dll AIF 3.0 62.490293
aif_ocl.dll AIF 3.0 62.490293
aif_ogl.dll AIF 3.0 62.490293
amtlib.dll AMTLib (64 Bit) 6.0.0.75 (BuildVersion: 6.0; BuildDate: Mon Jan 16 2012 18:00:00) 1.000000
ARE.dll ARE 2012/01/18-15:07:40 66.492997 66.492997
AXE8SharedExpat.dll AXE8SharedExpat 2011/12/16-15:10:49 66.26830 66.26830
AXEDOMCore.dll AXEDOMCore 2011/12/16-15:10:49 66.26830 66.26830
Bib.dll BIB 2012/01/18-15:07:40 66.492997 66.492997
BIBUtils.dll BIBUtils 2012/01/18-15:07:40 66.492997 66.492997
boost_date_time.dll DVA Product 6.0.0
boost_signals.dll DVA Product 6.0.0
boost_system.dll DVA Product 6.0.0
boost_threads.dll DVA Product 6.0.0
cg.dll NVIDIA Cg Runtime 3.0.00007
cgGL.dll NVIDIA Cg Runtime 3.0.00007
CIT.dll Adobe CIT 2.0.5.19287 2.0.5.19287
CoolType.dll CoolType 2012/01/18-15:07:40 66.492997 66.492997
data_flow.dll AIF 3.0 62.490293
dvaaudiodevice.dll DVA Product 6.0.0
dvacore.dll DVA Product 6.0.0
dvamarshal.dll DVA Product 6.0.0
dvamediatypes.dll DVA Product 6.0.0
dvaplayer.dll DVA Product 6.0.0
dvatransport.dll DVA Product 6.0.0
dvaunittesting.dll DVA Product 6.0.0
dynamiclink.dll DVA Product 6.0.0
ExtendScript.dll ExtendScript 2011/12/14-15:08:46 66.490082 66.490082
FileInfo.dll Adobe XMP FileInfo 2012/01/17-15:11:19 66.145433 66.145433
filter_graph.dll AIF 3.0 62.490293
hydra_filters.dll AIF 3.0 62.490293
icucnv40.dll International Components for Unicode 2011/11/15-16:30:22 Build gtlib_3.0.16615
icudt40.dll International Components for Unicode 2011/11/15-16:30:22 Build gtlib_3.0.16615
image_compiler.dll AIF 3.0 62.490293
image_flow.dll AIF 3.0 62.490293
image_runtime.dll AIF 3.0 62.490293
JP2KLib.dll JP2KLib 2011/12/12-16:12:37 66.236923 66.236923
libifcoremd.dll Intel(r) Visual Fortran Compiler 10.0 (Update A)
libmmd.dll Intel(r) C Compiler, Intel(r) C++ Compiler, Intel(r) Fortran Compiler 10.0
LogSession.dll LogSession 2.1.2.1640
mediacoreif.dll DVA Product 6.0.0
MPS.dll MPS 2012/02/03-10:33:13 66.495174 66.495174
msvcm80.dll Microsoft® Visual Studio® 2005 8.00.50727.6195
msvcm90.dll Microsoft® Visual Studio® 2008 9.00.30729.1
msvcp100.dll Microsoft® Visual Studio® 2010 10.00.40219.1
msvcp80.dll Microsoft® Visual Studio® 2005 8.00.50727.6195
msvcp90.dll Microsoft® Visual Studio® 2008 9.00.30729.1
msvcr100.dll Microsoft® Visual Studio® 2010 10.00.40219.1
msvcr80.dll Microsoft® Visual Studio® 2005 8.00.50727.6195
msvcr90.dll Microsoft® Visual Studio® 2008 9.00.30729.1
pdfsettings.dll Adobe PDFSettings 1.04
Photoshop.dll Adobe Photoshop CS6 CS6
Plugin.dll Adobe Photoshop CS6 CS6
PlugPlug.dll Adobe(R) CSXS PlugPlug Standard Dll (64 bit) 3.0.0.383
PSArt.dll Adobe Photoshop CS6 CS6
PSViews.dll Adobe Photoshop CS6 CS6
SCCore.dll ScCore 2011/12/14-15:08:46 66.490082 66.490082
ScriptUIFlex.dll ScriptUIFlex 2011/12/14-15:08:46 66.490082 66.490082
tbb.dll Intel(R) Threading Building Blocks for Windows 3, 0, 2010, 0406
tbbmalloc.dll Intel(R) Threading Building Blocks for Windows 3, 0, 2010, 0406
TfFontMgr.dll FontMgr 9.3.0.113
TfKernel.dll Kernel 9.3.0.113
TFKGEOM.dll Kernel Geom 9.3.0.113
TFUGEOM.dll Adobe, UGeom© 9.3.0.113
updaternotifications.dll Adobe Updater Notifications Library 6.0.0.24 (BuildVersion: 1.0; BuildDate: BUILDDATETIME) 6.0.0.24
WRServices.dll WRServices Friday January 27 2012 13:22:12 Build 0.17112 0.17112
wu3d.dll U3D Writer 9.3.0.113
Required plug-ins:
Accented Edges 13.0
Adaptive Wide Angle 13.0
ADM 3.11x01
Angled Strokes 13.0
Average 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
Bas Relief 13.0
BMP 13.0
Camera Raw 7.0
Chalk & Charcoal 13.0
Charcoal 13.0
Chrome 13.0
Cineon 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
Clouds 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
Collada 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
Color Halftone 13.0
Colored Pencil 13.0
CompuServe GIF 13.0
Conté Crayon 13.0
Craquelure 13.0
Crop and Straighten Photos 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
Crop and Straighten Photos Filter 13.0
Crosshatch 13.0
Crystallize 13.0
Cutout 13.0
Dark Strokes 13.0
De-Interlace 13.0
Difference Clouds 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
Diffuse Glow 13.0
Displace 13.0
Dry Brush 13.0
Eazel Acquire 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
Embed Watermark 4.0
Extrude 13.0
FastCore Routines 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
Fibers 13.0
Film Grain 13.0
Filter Gallery 13.0
Fresco 13.0
Glass 13.0
Glowing Edges 13.0
Grain 13.0
Graphic Pen 13.0
Halftone Pattern 13.0
HDRMergeUI 13.0
IFF Format 13.0
Ink Outlines 13.0
JPEG 2000 13.0
Lens Blur 13.0
Lens Correction 13.0
Lens Flare 13.0
Liquify 13.0
Matlab Operation 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
Measurement Core 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
Mezzotint 13.0
MMXCore Routines 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
Mosaic Tiles 13.0
Multiprocessor Support 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
Neon Glow 13.0
Note Paper 13.0
NTSC Colors 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
Ocean Ripple 13.0
Oil Paint 13.0
OpenEXR 13.0
Paint Daubs 13.0
Palette Knife 13.0
Patchwork 13.0
Paths to Illustrator 13.0
PCX 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
Photocopy 13.0
Photoshop 3D Engine 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
Picture Package Filter 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
Pinch 13.0
Pixar 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
Plaster 13.0
Plastic Wrap 13.0
PNG 13.0
Pointillize 13.0
Polar Coordinates 13.0
Portable Bit Map 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
Poster Edges 13.0
Radial Blur 13.0
Radiance 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
Read Watermark 4.0
Reticulation 13.0
Ripple 13.0
Rough Pastels 13.0
Save for Web 13.0
ScriptingSupport 13.0
Shear 13.0
Smart Blur 13.0
Smudge Stick 13.0
Solarize 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
Spatter 13.0
Spherize 13.0
Sponge 13.0
Sprayed Strokes 13.0
Stained Glass 13.0
Stamp 13.0
Sumi-e 13.0
Targa 13.0
Texturizer 13.0
Tiles 13.0
Torn Edges 13.0
Twirl 13.0
Underpainting 13.0
Vanishing Point 13.0
Variations 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
Water Paper 13.0
Watercolor 13.0
Wave 13.0
WIA Support 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
Wind 13.0
Wireless Bitmap 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
ZigZag 13.0
Optional and third party plug-ins: NONE
Plug-ins that failed to load: NONE
Flash:
Mini Bridge
Kuler
Installed TWAIN devices: NONE -
Gradual swap one bitmap for another?
I am trying to swap one bitmap for another over a few
seconds. I can't get it to work. Is this a motion tween or shape
tween or what?newbie1420,
> Sorry about the delay, I would like to "morph" one photo
into
> another, one fades into the next.
It sounds like you're using two words to describe the same
technique --
but I'm not sure. To me, a morph is when one raster image
slowly
metamorphoses into another. If photo A is a dog, and photo B
is a cat, the
area that represents the dog's nose literally changes shape
to become the
shape of a cat's nose The dog's ears may grow, warp, or
otherwise distort
to become the shape of the cat's ears, and so on. Fading
generally
describes a dissolve: nothing in either image changes shape;
it's just that
one image slowly becomes more transparent, revealing the
image beneath it.
> I have made them into movie clip symbols, still not
getting the right
> effect...
If you're after morphing, as described above, you'll find
that Flash
doesn't support it. If you're after a dissolve, you can
achieve the effect
easily by putting two photos into their own symbols, as
you've done, and
each symbol in its own layer, one atop the other. Put two
keyframes in the
upper symbol. At the first keyframe, make sure the symbol's
Alpha property
is 100. At the second keyframe, make sure the symbol's Alpha
property is 0.
Motion tween the span of frames between those two keyframes,
and you'll have
your dissolve, aka fade.
David Stiller
Co-author, Foundation Flash CS3 for Designers
http://tinyurl.com/2k29mj
"Luck is the residue of good design." -
A generic error occurred in GDI+ while assing tiff image file to Bitmap and Image
Hi,
I am getting "A generic error occurred in GDI+" error while reading the tiff image file to Bitmap or Image.
Below is my sample code.
string filePath=@"c:\Images\sample.tif";
Bitmap bmp=new Bitmap(filePath); // here getting exception
int totalpages=bmp.GetFrameCount(.....);
etc......
I tried using Bitmap.FromFile() and also from FromStream() even for Image also but there is no use.
Moreover i m having full permissions for the file path and the tiff file is having multiple pages.
Can anyone help me to solve this issue please.
Thanks & Regards,
Kishore
KishoreMake sure that the Tif file is valid (can other software open it)? If you are able to save a Tif using GDI+, try saving that Tif, then opening it. Part of me wonders if there is something about that specific Tif that GDI+ doesn't like.
You could also try using WIC to open the TIF, perhaps you would have better luck there. -
Error while uploading BITMAP image in SAP through SE78.
Hello all,
I am getting below error while uploading image into SAP through SE78.
'Bitmap file: No color table available (True Color, Bitcount 32)'.
I have tried searching for solution and got some help from below reply from a thread:
You may do these options:
1. Lower the resolution of the image
2. Lower the file size of the image
Regards,
Reymar
I have got a image size of 6.14 KB and resolution of 72*72 dots per inch.
Thanks in Advance.
- Jayant Sahu.Hi Daniel,
First of all, if you dont mind, start a new thread for your question please.
Anyways, answer to your question is --
You need to save your picture with lower-most bits BITMAP Type. When you were saving your picture as .bmp, take care you are passing lower-most BITMAP type and not 24-bit as it may be as default.
This way, your problem would be resolved.
Thanks.
Kumar Saurav. -
Diff b/w btree and bitmap index ?
What is the difference between btree and bitmap index ?
which one to used and when.
how they are differ from each other.you'd love to see
http://www.oracle.com/technology/pub/articles/sharma_indexes.html -
Multi-column BITMAP index vs. multiple BITMAP indices?
Given the table (simple, made-up example):
CREATE TABLE applicant_diversity_info (
applicant_diversity_id NUMBER(12), PRIMARY KEY(applicant_diversity_id),
apply_date DATE,
ssn_salted_md5 RAW(16),
gender CHAR(1), CHECK ( (gender IS NULL OR gender IN ('M','F')) ),
racial_continent VARCHAR2(30), CHECK ( (racial_continent IS NULL
OR racial_continent IN ('Europe','Africa','America','Asia_Pacific')) ),
ethnic_supergroup VARCHAR2(30), CHECK ( (ethnic_supergroup IS NULL OR ethnic_supergroup IN ('Latin American','Other')) ),
hire_salary NUMBER(11,2),
hire_month DATE,
termination_salary NUMBER(11,2),
termination_month DATE,
termination_cause VARCHAR2(30), CHECK ( (termination_cause IS NULL
OR termination_cause IN ('Resigned','Leave of Absence','Laid Off','Performance','Cause')) )
Oracle (syntactically) allows me to create either one BITMAP index over all four small-cardinality columns
CREATE BITMAP INDEX applicant_diversity_diversity_idx ON applicant_diversity_info (
gender, racial_continent, ethnic_supergroup, termination_reason );
or four independent indexes
CREATE BITMAP INDEX applicant_diversity_gender_idx ON applicant_diversity_info ( gender );
CREATE BITMAP INDEX applicant_diversity_race_idx ON applicant_diversity_info ( raceial_continent );
etc.
What is the difference between the two approaches; is there any meaningful difference in disk-space between the one multi-colum index and the four single-column indexes? Does it make a difference in what the query-planner will consider?
And, if I define one multi-column BITMAP index, does the order of columns matter?>
What is the difference between the two approaches; is there any meaningful difference in disk-space between the one multi-colum index and the four single-column indexes? Does it make a difference in what the query-planner will consider?
And, if I define one multi-column BITMAP index, does the order of columns matter?
>
You may want to read this two-part blog, that answers that exact question, by recognized expert Richard Foote
http://richardfoote.wordpress.com/2010/05/06/concatenated-bitmap-indexes-part-i-two-of-us/
http://richardfoote.wordpress.com/2010/05/12/concatenated-bitmap-indexes-part-ii-everybodys-got-to-learn-sometime/
As with many things Oracle the answer is 'it depends'.
In short the same considerations apply for a concatenated index whether it is bitmap or b-tree: 1) will the leading column usually be in the predicate and 2) will most or all of the index columns be specified in the queries.
Here are some quotes from part 1
>
Many of the same issues and factors in deciding to create a single, multi-column index vs. several, single column indexes apply to Bitmap indexes as they do with B-Tree indexes, although there are a number of key differences to consider as well.
Another thing to note regarding a concatenated Bitmap index is that the potential number of index entries is a product of distinct combinations of data of the indexed columns.
A concatenated Bitmap index can potentially use less or more space than corresponding single column indexes, it depends on the number of index entries that are derived and the distribution of the data with the table.
>
Here is the lead quote from part 2
>
The issues regarding whether to go for single column indexes vs. concatenated indexes are similar for Bitmap indexes as they are for B-Tree indexes.
It’s generally more efficient to access a concatenated index as it’s only the one index with less processing and less throwaway rowids/rows to contend with. However it’s more flexible to have single column indexes, especially for Bitmap indexes that are kinda designed to be used concurrently, as concatenated indexes are heavily dependant on the leading column being known in queries. -
Hi All,
Could some one please let me know how Bitmap indexes are useful compared to B-Tree indexes on low-cardinality columns ?.
Thanks,
-Kumar.>>
As Re: why oracle db 9i optimizer can't choose to use the bitmap index? there are a number of issues with bitmap indexes. Your best bet is to read these three articles by Jonathan Lewis.
It does pay us to understand how the optimizer works with bitmap indexes. I posted some Re: Cost-based optimizer behavior to show how indexes on even very low valued columns can be useful in certain circumstances.
Cheers, APC
Blog : http://radiofreetooting.blogspot.com/ -
How do I use a Rayleigh fading model?
I have looked into the MT Generate Fading profile and Apply fading profile VIs. However, I do not know how to use them, I used the default parameters for a frequency fading channel, but the resultant constellation plot which I got was deviating far from the actual values and producing a repeating pattern. I have my power delay profile and my doppler spread, but when I tried to input my 6 tap power delay profile, I got an error which said that the number of rows must be same as number of rows of the fading profile(which by default was an 1X1000 array). However, the power delay profile which I have is a 6X2 array. If any one has ever implemented a Rayleigh channel, can you please tell me how to do it or attach your VIs? I am attaching snapshots of my VIs, and also a sample constellation plot for QPSK. In my VI, I have a bitstream and modulated it. By modulation, I have generated a complex waveform and want to pass it through a Rayleigh channel. At the receiver end, I have decoded and demodulated the waveform to get the original bitstream back.
Attachments:
rayleigh.png 32 KB
QPSK constellation.png 27 KBHello raitexas,
Have you checked out the example that ships with Modulation Toolkit. The example is called MT Rayleigh Fading Profile (QAM).vi and can be found in the Example Finder under Toolkits and Modules»Modulation»Simulation. Take a look and see how the channel is implemented and post back with any questions.
Regards,
Dan King -
The question is not so clear i will try to explain here.
I have a trackBar scroll event:
private void trackBar1_Scroll(object sender, EventArgs e)
LoadPictureAt(trackBar1.Value, sender);
ConvertedBmp = ConvertTo24(trackBar1FileInfo[trackBar1.Value].FullName);
ConvertedBmp.Save(ConvertedBmpDir + "\\ConvertedBmp.bmp");
mymem = ToStream(ConvertedBmp, ImageFormat.Bmp);
backTexture = TextureLoader.FromStream(D3Ddev, mymem);
scannedCloudsTexture = new Texture(D3Ddev, 512, 512, 1, Usage.Dynamic, Format.A8R8G8B8, Pool.Default);
timer1.Stop();
Button1Code();
timer1.Start();
b1 = ConvertedBmp;
b1.Save(ConvertedBmpDir + "\\b1.bmp");
trackBar2.Enabled = false;
if (!this.backgroundWorker1.IsBusy)
label2.Text = "מעבד נתונים";
this.backgroundWorker1.RunWorkerAsync();
else
this.backgroundWorker1.CancelAsync();
First LoadPictureAt method:
private bool LoadPictureAt(int nIndex, object c)
bool bRet = false;
if (nIndex >= 0 && nIndex < trackBar1FileInfo.Length)
if (c.Equals(trackBar1))
pictureBox1.Load(trackBar1FileInfo[nIndex].FullName);
bRet = true;
if (bitmaps != null)
if (nIndex >= 0 && nIndex < bitmaps.Length)
if (c.Equals(trackBar2))
pictureBox1.Image = bitmaps[nIndex];
bRet = true;
return bRet;
Then the ConvertTo24 method:
private Bitmap ConvertTo24(string inputFileName)
sw = Stopwatch.StartNew();
Bitmap bmpIn = (Bitmap)Bitmap.FromFile(inputFileName);
Bitmap converted = new Bitmap(bmpIn.Width, bmpIn.Height, PixelFormat.Format24bppRgb);
using (Graphics g = Graphics.FromImage(converted))
// Prevent DPI conversion
g.PageUnit = GraphicsUnit.Pixel;
// Draw the image
g.DrawImageUnscaled(bmpIn, 0, 0);
//converted.Save(outputFileName, ImageFormat.Bmp);
sw.Stop();
return converted;
Then ToStream method:
public static Stream ToStream(Image image, ImageFormat formaw)
var stream = new System.IO.MemoryStream();
image.Save(stream, formaw);
stream.Position = 0;
return stream;
What it does is taking a Bitmap image and make a doppler radar effect on it and detect color only places that there are pixels(clouds) in it.
Here is a screenshot:
You can see the doppler shape and it's moving around and highlight the places with clouds.
So when i move the trackBar1 to the left each time on another Bitmap image it's showing the doppler effect and the clouds.
The problem is with the trackBar2 scroll event:
First when i'm running my program and enteric to this new form that scan the clouds and show the doppler radar effect a backgroundworker1 is working:
private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
BackgroundWorker bgw = (BackgroundWorker)sender;
if (bgw.CancellationPending == true)
return;
else
while (true)
bitmaps = ImagesComparison.get_images_with_clouds(b1);
for (int i = 0; i < bitmaps.Length; i++)
bitmaps[i] = ConvertTo1or8Bit.ColorToGrayscale(bitmaps[i]);
break;
What it does is getting into bitmaps(Bitmap[]) 15 new bitmaps from one given bitmap. The given bitmap is b1.
b1 i'm using it in trackBar1 scroll event.
All the new Bitmaps in bitmaps variable array are Format32bppArgb.
While i checked on my hard disk the images(GIF type) i'm using with trackBar1 are all Bit Depth 8.
The images i'm using with trackBar1 scroll event are GIF types and Bit Depth 8 on the properties.
The images i'm using in trackBar2 are Bitmaps and they are Format32bppArgb.
So first thing i thought to convert all the 15 Bitmaps in bitmaps to 8bit:
for (int i = 0; i < bitmaps.Length; i++)
bitmaps[i] = ConvertTo1or8Bit.ColorToGrayscale(bitmaps[i]);
But it didn't work it's just turning them to black gray scale colors not what i was thinking about.
In the backgroundworker completed event i'm converting the bitmaps to 24 like i'm doing with the Gifs in trackBar1 scroll event:
private void backgroundWorker1_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
trackBar2.Enabled = true;
trackBar2.Maximum = bitmaps.Length -1;
bitmaps[0].Save(ConvertedBmpDir + "\\bitmapsfirstimage.bmp");
for (int i = 0; i < bitmaps.Length; i++)
ConvertedBitmaps.Add(ConvertTo24(bitmaps[i]));
ConvertedBitmaps[0].Save(ConvertedBmpDir + "\\ConvertedBitmapsFirstImage.bmp");
label2.Text = "עיבוד הנתונים הסתיים";
b1.Dispose();
Then in the trackBar2 scroll event:
private void trackBar2_Scroll(object sender, EventArgs e)
LoadPictureAt(trackBar2.Value, sender);
ConvertedBmp = ConvertedBitmaps[trackBar2.Value - 1];
ConvertedBmp.Save(ConvertedBmpDir + "\\ConvertedBmp.bmp");
mymem = ToStream(ConvertedBmp, ImageFormat.Bmp);
backTexture = TextureLoader.FromStream(D3Ddev, mymem);
scannedCloudsTexture = new Texture(D3Ddev, 512, 512, 1, Usage.Dynamic, Format.A8R8G8B8, Pool.Default);
timer1.Stop();
Button1Code();
timer1.Start();
The same i did with the trackBar1 scroll event.
But the result in trackBar2 i'm getting without using the grayscale convertion is this:
You can see that the color that make the scan now is more yellow or green/yellow and not the same like it is when i'm using the trackBar1.
I can't figure out where the problem is:
1. Maybe since the Bitmaps in the variable array bitmaps are all Format32bppArgb ?
2. Maybe they are Bitmaps and not Gif types like the images in trackBar1 ?
If it does working good with the gifs in trackBar1 scroll event then the whole code in the new form ScanningClouds is working fine so i will not add to here the whole ScanningClouds form code since it's long.
The problem is somewhere with the Bitmaps formas or bits in the variable bitmaps.
Maybe they are not the same or the right Bit Depth or maybe they are Bitmaps and should be Gifs.
bitmaps = ImagesComparison.get_images_with_clouds(b1);
This is the get_images_with_clouds method where i'm getting the new 15 Bitmaps.
public static Bitmap[] get_images_with_clouds(Bitmap radar_image)
int e = 0;
int f = 0;
int image_clock_area_x = 0;
int image_clock_area_y = 0;
int image_clock_area_x1 = 140;
int image_clock_area_y1 = 21;
Bitmap[] localImages;
localImages = new Bitmap[15];
Bitmap image;
image = new Bitmap(Properties.Resources.radar_without_clouds);
BitmapData bmD = null;
BitmapData bmD2 = null;
try
bmD = image.LockBits(new Rectangle(0, 0, image.Width, image.Height), ImageLockMode.ReadWrite,
PixelFormat.Format32bppArgb);
bmD2 = radar_image.LockBits(new Rectangle(0, 0, radar_image.Width, radar_image.Height), ImageLockMode.ReadOnly,
PixelFormat.Format32bppArgb);
IntPtr sc0 = bmD.Scan0;
unsafe
int* p = (int*)sc0.ToPointer();
int* p2 = (int*)bmD2.Scan0.ToPointer();
for (e = image_clock_area_x; e < image_clock_area_x + image_clock_area_x1; e++)
for (f = image_clock_area_y; f < image_clock_area_y + image_clock_area_y1; f++)
Color clock_color = Color.FromArgb(p2[e + f * bmD2.Width]);
p[e + f * bmD.Width] = clock_color.ToArgb();
image.UnlockBits(bmD);
radar_image.UnlockBits(bmD2);
catch
try
image.UnlockBits(bmD);
catch
try
radar_image.UnlockBits(bmD2);
catch
int c;
for (c = 0; c < localImages.Length; c++)
localImages[c] = new Bitmap(image);
Bitmap new_image = new Bitmap(Properties.Resources.radar_without_clouds);
Bitmap new_image1 = new Bitmap(Properties.Resources.radar_without_clouds);
Bitmap localbmptest = black_and_white(new_image, radar_image);
Image image1 = black_and_white(new_image, radar_image);
image1.Save(@"c:\temp\testclouds666.jpg");
Bitmap clouds = new Bitmap(image1);
int x;
int y;
int a;
int b;
int d = 0;
Bitmap redImage;
redImage = new Bitmap(512, 512);
using (Graphics g = Graphics.FromImage(redImage))
g.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.NearestNeighbor;
g.PixelOffsetMode = System.Drawing.Drawing2D.PixelOffsetMode.Half;
g.Clear(Color.Red);
BitmapData bmData = null;
BitmapData bmData2 = null;
BitmapData bmDataArray = null;
try
bmData = clouds.LockBits(new Rectangle(0, 0, clouds.Width, clouds.Height), ImageLockMode.ReadOnly,
PixelFormat.Format32bppArgb);
bmData2 = radar_image.LockBits(new Rectangle(0, 0, radar_image.Width, radar_image.Height), ImageLockMode.ReadOnly,
PixelFormat.Format32bppArgb);
IntPtr scan0 = bmData.Scan0;
IntPtr scan02 = bmData2.Scan0;
unsafe
int* p = (int*)scan0.ToPointer();
int* p2 = (int*)scan02.ToPointer();
double h, mm;
for (d = 0; d < localImages.Length; d++)
bmDataArray = localImages[d].LockBits(new Rectangle(0, 0, localImages[d].Width, localImages[d].Height), ImageLockMode.ReadWrite,
PixelFormat.Format32bppArgb);
IntPtr scan0Array = bmDataArray.Scan0;
int* pArray = (int*)scan0Array.ToPointer();
for (a = 0; a < new_image.Width; a++)
for (b = 0; b < new_image.Height; b++)
Color color1 = Color.FromArgb(p[a + b * bmData.Width]);
Color color2 = Color.FromArgb(p2[a + b * bmData2.Width]);
if (color1.R != 0 || color1.G != 0 || color1.B != 0)
h = color2.GetHue();
mm = RadarAnalysis.Hue2MMPerHour(h);
if (mm >= treshhold_array[14 - d])
pArray[a + b * bmDataArray.Width] = color2.ToArgb();
localImages[d].UnlockBits(bmDataArray);
clouds.UnlockBits(bmData);
radar_image.UnlockBits(bmData2);
catch (Exception error)
try
clouds.UnlockBits(bmData);
catch
try
radar_image.UnlockBits(bmData2);
catch
try
localImages[d].UnlockBits(bmDataArray);
catch
Logger.Write("Error Exception ==> " + error);
MessageBox.Show("Error Exception ==> " + error);
return localImages;
I think not sure but i think the problem is that the images on my hard disk i'm using with the trackBar1 scroll event are Gif type and the images i'm using with the trackBar2 scroll event are 15 Bitmaps.Hi,
"But it didn't work it's just turning them to black gray scale colors not what i was thinking about."
If you want it to be colored, you'll need to create a color-palette for the 8bppIndexed bitmaps. The keyword for this process is "Color-Quantization".
The whole yellow-green pie you get is from the wrong format. If you convert the 32bpp bitmaps to 24 bpp bitmaps, you loose the alpha channel ("transparency"). You can manually set one color to "transparent" with the mMakeTransparent-method
of the Bitmap class, or simply use gif-images (they are 8bpp with a transparent "key"-color)
Regards,
Thorsten -
When I try to remember passwords the setting for it is faded and I cannot check it.
When I go into Options then Security, the Remember Passwords is faded and I cannot select it. I need this, I have to sign in to my homepage every time, and it shows that it is a saved password. I am new to Firefox and need help.
Application Basics
Name: Firefox
Version: 30.0
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:30.0) Gecko/20100101 Firefox/30.0
Crash Reports for the Last 3 Days
All Crash Reports (including 60 pending crashes in the given time range)
Extensions
Important Modified Preferences
browser.cache.disk.capacity: 358400
browser.cache.disk.smart_size_cached_value: 358400
browser.cache.disk.smart_size.first_run: false
browser.cache.disk.smart_size.use_old_max: false
browser.places.smartBookmarksVersion: 7
browser.privatebrowsing.autostart: true
browser.sessionstore.upgradeBackup.latestBuildID: 20140605174243
browser.startup.homepage: http://xfinity.comcast.net/home/x/?cid=mtmh10212014
browser.startup.homepage_override.buildID: 20140605174243
browser.startup.homepage_override.mstone: 30.0
browser.urlbar.default.behavior: 2
dom.mozApps.used: true
extensions.lastAppVersion: 30.0
gfx.direct3d.last_used_feature_level_idx: 1
network.cookie.prefsMigrated: true
places.database.lastMaintenance: 1414127486
places.history.expiration.transient_current_max_pages: 102097
plugin.disable_full_page_plugin_for_types: application/pdf
plugin.importedState: true
print.printer_HP_Officejet_4630_series_(Network).print_bgcolor: false
print.printer_HP_Officejet_4630_series_(Network).print_bgimages: false
print.printer_HP_Officejet_4630_series_(Network).print_colorspace:
print.printer_HP_Officejet_4630_series_(Network).print_command:
print.printer_HP_Officejet_4630_series_(Network).print_downloadfonts: false
print.printer_HP_Officejet_4630_series_(Network).print_duplex: -2129785343
print.printer_HP_Officejet_4630_series_(Network).print_edge_bottom: 0
print.printer_HP_Officejet_4630_series_(Network).print_edge_left: 0
print.printer_HP_Officejet_4630_series_(Network).print_edge_right: 0
print.printer_HP_Officejet_4630_series_(Network).print_edge_top: 0
print.printer_HP_Officejet_4630_series_(Network).print_evenpages: true
print.printer_HP_Officejet_4630_series_(Network).print_footercenter:
print.printer_HP_Officejet_4630_series_(Network).print_footerleft: &PT
print.printer_HP_Officejet_4630_series_(Network).print_footerright: &D
print.printer_HP_Officejet_4630_series_(Network).print_headercenter:
print.printer_HP_Officejet_4630_series_(Network).print_headerleft: &T
print.printer_HP_Officejet_4630_series_(Network).print_headerright: &U
print.printer_HP_Officejet_4630_series_(Network).print_in_color: true
print.printer_HP_Officejet_4630_series_(Network).print_margin_bottom: 0.5
print.printer_HP_Officejet_4630_series_(Network).print_margin_left: 0.5
print.printer_HP_Officejet_4630_series_(Network).print_margin_right: 0.5
print.printer_HP_Officejet_4630_series_(Network).print_margin_top: 0.5
print.printer_HP_Officejet_4630_series_(Network).print_oddpages: true
print.printer_HP_Officejet_4630_series_(Network).print_orientation: 0
print.printer_HP_Officejet_4630_series_(Network).print_page_delay: 50
print.printer_HP_Officejet_4630_series_(Network).print_paper_data: 1
print.printer_HP_Officejet_4630_series_(Network).print_paper_height: 11.00
print.printer_HP_Officejet_4630_series_(Network).print_paper_name:
print.printer_HP_Officejet_4630_series_(Network).print_paper_size_type: 0
print.printer_HP_Officejet_4630_series_(Network).print_paper_size_unit: 0
print.printer_HP_Officejet_4630_series_(Network).print_paper_width: 8.50
print.printer_HP_Officejet_4630_series_(Network).print_plex_name:
print.printer_HP_Officejet_4630_series_(Network).print_resolution: 1149309452
print.printer_HP_Officejet_4630_series_(Network).print_resolution_name:
print.printer_HP_Officejet_4630_series_(Network).print_reversed: false
print.printer_HP_Officejet_4630_series_(Network).print_scaling: 1.00
print.printer_HP_Officejet_4630_series_(Network).print_shrink_to_fit: true
print.printer_HP_Officejet_4630_series_(Network).print_to_file: false
print.printer_HP_Officejet_4630_series_(Network).print_unwriteable_margin_bottom: 0
print.printer_HP_Officejet_4630_series_(Network).print_unwriteable_margin_left: 0
print.printer_HP_Officejet_4630_series_(Network).print_unwriteable_margin_right: 0
print.printer_HP_Officejet_4630_series_(Network).print_unwriteable_margin_top: 0
privacy.sanitize.migrateFx3Prefs: true
storage.vacuum.last.index: 1
storage.vacuum.last.places.sqlite: 1413611062
Graphics
Adapter Description: Intel(R) HD Graphics
Adapter Drivers: igdumd64 igd10umd64 igdumdx32 igd10umd32
Adapter RAM: Unknown
Device ID: 0x0046
Direct2D Enabled: true
DirectWrite Enabled: true (6.2.9200.16571)
Driver Date: 3-25-2011
Driver Version: 8.15.10.2342
GPU #2 Active: false
GPU Accelerated Windows: 2/2 Direct3D 10
Vendor ID: 0x8086
WebGL Renderer: Google Inc. -- ANGLE (Intel(R) HD Graphics Direct3D9Ex vs_3_0 ps_3_0)
windowLayerManagerRemote: false
AzureCanvasBackend: direct2d
AzureContentBackend: direct2d
AzureFallbackCanvasBackend: cairo
AzureSkiaAccelerated: 0
JavaScript
Incremental GC: true
Accessibility
Activated: false
Prevent Accessibility: 0
Library Versions
NSPR
Expected minimum version: 4.10.6
Version in use: 4.10.6
NSS
Expected minimum version: 3.16 Basic ECC
Version in use: 3.16 Basic ECC
NSSSMIME
Expected minimum version: 3.16 Basic ECC
Version in use: 3.16 Basic ECC
NSSSSL
Expected minimum version: 3.16 Basic ECC
Version in use: 3.16 Basic ECC
NSSUTIL
Expected minimum version: 3.16
Version in use: 3.16hello, firefox won't save your passwords when you've set it up to run in permanent private browsing mode ("never remember history" in the options > privacy panel).
[[Settings for privacy, browsing history and do-not-track]] -
I'm freaking out because almost all my music except for those songs purchased directly from the iTunes store has been deleted from my iPod - about 35 gigs. The songs show up, but they're all faded out and unplayable from my device (I have the newest version). Exclamation points appear beside all my songs in the "On this iPod" section, and yet I can't double-click to locate the files as nothing pops up. Some of my music has a weird circle next to it and is even more faded out when I'm in the "On this iPod" section - that's been happening for a couple of days. Yesterday I tried to set my settings to sync with my library only, and it worked, but this morning everything got even worse with the rest of my songs disappearing. What's happening???? Help??
The syncing of music is one way, computer to phone. See this helpful document from a fellow user. Credit goes to the author.
https://discussions.apple.com/docs/DOC-3141 -
I'm attempting to fade in bulleted text using:
var myFade = new Tween(_root["mcTextArea3Text"], "_alpha",
Regular.easeInOut, 0, 100, 2, true);
I have styled the texted as bullets and it appears fine
without the tween. I'm using an embedded Arial font as well. Does
anyone have any solutions to this? I'm also limited to Flash 7 as
the client will not upgrade to anything higherTry putting the text in a movie clip and fading the movie
clip. There are new steps to embedding fonts (search these forums
for a number of posts with instructions), but I think they are only
applicable to Flash 8 player and above.
Good luck!
Maybe you are looking for
-
Hi! I´m seeking a better way to handle totalizer in Excel tables. For example It can be a electricity meter I want to follow and analyze. First step is to make a simple table with columns "date" and "Energy". This table are the source for a Pivot for
-
Multiple Values For one Condition in Choose From List
I have used one Business Partner Choose From List in my form but i want to give condition in that choose from list on GroupCode .But the condition will have multiple values like 100,102,104 then how i will write the code to incorporate multiple value
-
Problem with SAP Management console
Hi I am starting my SAP Server from SAP Management console( ECC6.0 IDES Version). I am able to login into my system but after few minutes the server color is changing from Green to Yellow and I am not able to continue using my system. What could be t
-
Hi Good afternoon to all , can any one tell me the table fields name for 1. bill amount : ? 2. tds : ? 3>passed amount : ? transaction use is mir7 . Regards Rakesh kumar singh
-
MIRO for Multiple plant..!!!
Hi all , While posting the Vendor invoice ( MIRO) based on Vendor , the following error message showing Multiple Plant Exists in the same invoice Message No : 8I820 The following function has been activated.. Sap standard implementation CL_CAT_DET_M