Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CIImage and un-explained borders



I am getting border lines when drawing a CIImage to a CIContext.

1) jpg that is mainly white with a small logo in the center.  
2) CIContext that has it's buffer cleared to white.  
3) Draw using drawImage:inRect:fromRect.
4) Along with the picture a  1 pixel grey border is drawn (varying sides, see second note below for more)

Why does this border appear?

Notes:
-The context is an openGL context inside an NSOpenGLView (although it will happen in full screen too).
-Depending on the NSOpenGLView size, the border may only appear on the top, all sides, just right and left side, or just bottom, or top and bottom.
-Sometimes the border appears darker or larger (can't really tell)
-The lines appear as the only thing in the AlphaBuffer when viewing in OpenGL Profiler
-Happens when Blending is enabled or disabled, and regardless if  blending is glBlendFunc(GL_ONE, GL_ZERO) or glBlendFunc(GL_ONE,GL_ONE_MINUS_SRC_ALPHA) 

If you need anymore information I can get it for you.  I have spent many many hours on this.  I am new to openGL and CoreImage and I can't seem to figure this out.


Thanks for anytime people put into helping me out.

-mike miller


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.