[Gambas-user] About Image.Pixel
Bruce Steers
bsteers4 at gmail.com
Tue Aug 15 00:37:50 CEST 2023
On Mon, 14 Aug 2023, 21:19 Fabien Bodard, <gambas.fr at gmail.com> wrote:
> Hi,
>
> Dim hImg As New Image(1, 1, Color.red)
> dim a as Integer[]
>
> a = hImg.Pixels
> Print a[0]
> Print hImg[0, 0]
>
> result :
> -65536
> 16711680
>
>
> Why ?
>
> --
> Fabien Bodard
>
According to wiki Image[x,y] returns a "colour"
Image.pixels[n] will be from an array of "32 bits integers"
I don't understand it but seems could be a difference?
Respects
BruceS
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230814/a7040dfd/attachment.htm>
More information about the User
mailing list