On Wed, Aug 4, 2010 at 6:50 AM, mark.t.macdon...@googlemail.com
mark.t.macdon...@googlemail.com wrote:
Is there a way I can do this without creating a Pixel pointer?
Something like this (which doesn't compile):
fractal.add_pixels();
fractal.pixels(0).set_red(54);
You want:
I have a message which describes an image:
message Image
{
required int32 width = 1;
required int32 height = 2;
optional string name = 3;
message Pixel
{
required int32 red = 1;
required int32 green = 2;
required int32 blue = 3;
optional int32 alpha = 4;
}
repeated Pixel pixels =
On Aug 4, 2010, at 9:50 , mark.t.macdon...@googlemail.com wrote:
Is there a way I can do this without creating a Pixel pointer?
Something like this (which doesn't compile):
Try fractal.mutable_pixel(0)-set_*
Hope this helps,
Evan
--
Evan Jones
http://evanjones.ca/
--
You received this