[codenameone-discussions] Re: an IOS platform issue with images

2016-06-21 Thread Shai Almog
Pull requests are reasonably easy to do. The main motivation of using that 
over an issue or comment is:
a. They get done.
b. You get the credit.

I would not use the word unrelated since the values are clearly related.

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/05a9c250-71f2-4d14-b7f6-33697575eae3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: an IOS platform issue with images

2016-06-21 Thread Dave Dyer
It's unreasonable for me to go to all the effort to resync my sources and 
construct a pull request, only to
be rejected because I can't guess the specific wording you will find 
acceptable.   Something to the effect
of

Note that RGB values produced by getRGB may not be identical to those you 
expect based on the known
values in the original image; and specifically that on IOS, the RGB 
conponents of partially transparent pixels
will have values unrelated to the original values.

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/db8c7db8-fd4e-4db6-96ef-04d01d29a631%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: an IOS platform issue with images

2016-06-20 Thread Shai Almog
If you have something specific in mind you can submit a pull request with 
the javadoc changes you think are appropriate for this.

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/dcdc6c4e-df61-4d46-8f9f-d9ca789c9e8d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: an IOS platform issue with images

2016-06-19 Thread Dave Dyer
well, you could retain the original rgb array that was used to create the 
image, but that
Screams waste of memory.

My test indicates this is also a problem for images created by the embedded 
image readers.
Basically this means getRGB is useless for processing images with a 
transparency component - 
For example to do better scaling than the closest pixel scaling you provide 
access to.

This is something you ought to document in the description of getRGB.

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/837d8b34-85d1-4f43-96c7-365425b88d1c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: an IOS platform issue with images

2016-06-19 Thread Shai Almog
That's possible. Especially with image manipulation which is pretty tricky 
to get right on iOS as it's graphics pipeline is totally different. 

I'm not sure if it's fixable though, if I recall that code we added the 
color to workaround a different problem in that logic where transparency 
didn't work at all without a blending color.

I'm not sure what could be used as a workaround for this.

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/7d124d7f-d07e-49ba-8659-4ab165a30549%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: an IOS platform issue with images

2016-06-18 Thread Dave Dyer
The value I put in is 0x, the value I get back out Is 0x00ff
but the effect ix not limited to fully transparent pixels.  Near!y 
transparent
come back as nearly white.  The "white" pollution continues up through
the transparency scale, so my smooth gray shadows become tinged 
with white, because the partially transparent black has become 
partially transparent white.

You can see this clearly in the attached images.  I suspect this is 
because IOS is using pre-multiplied transparency, so the information
about the original color is actually being lost.   

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/eec8426d-c863-4f7e-8415-7811b734efb7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: an IOS platform issue with images

2016-06-18 Thread Shai Almog
Where did you say you put in black and got back white in the question?
I just re-read it and can't see that neither in the sample nor the wording.

If the alpha component is transparent the color component is ignored.

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/71ccd2eb-8d2b-47f4-9379-5ef1ad3ff667%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: an IOS platform issue with images

2016-06-18 Thread Dave Dyer
I would say that putting out black and getting back white, as is the case 
here,
is a rather spectacular example of "not guaranteed"


On Friday, June 17, 2016 at 11:31:16 PM UTC-7, Shai Almog wrote:
>
> Assuming out is an ARGB array which you didn't state. This still isn't 
> guaranteed to work as the colors are applied to a native surface which 
> doesn't have to support all the colors.
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/a67e2603-17c9-4370-98e4-1ce203ac44bb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: an IOS platform issue with images

2016-06-17 Thread Shai Almog
Assuming out is an ARGB array which you didn't state. This still isn't 
guaranteed to work as the colors are applied to a native surface which 
doesn't have to support all the colors.

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/3ab2bb7c-ad15-480a-9c3f-d82af759f12d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.