pike.git / lib / modules / _Image_XCF.pmod

version» Context lines:

pike.git/lib/modules/_Image_XCF.pmod:422:    lopts->alpha_value = 1.0;    layers = ({ Image.Layer( lopts ) });    }       foreach(what->layers, object l)    if((l->flags->visible && l->opacity > 0) || opts->draw_all_layers)    {    Image.Layer lay = l->image->get_layer( shrink );    lay->set_mode( translate_mode( l->mode ) );    if( l->opacity != 255 ) -  lay->set_alpha_value( l->opacity / 255.0 ); +  { +  if( lay->alpha() ) +  lay->set_image( lay->image(), lay->alpha()*(l->opacity/255.0) ); +  else +  lay->set_image( lay->image(), Image.Image( lay->xsize(), +  lay->yszize(), +  l->opacity, +  l->opacity, +  l->opacity)); +  }    lay->set_offset( l->xoffset/shrink, l->yoffset/shrink );       if(l->mask && l->flags->apply_mask)    {    object a = lay->alpha();    object a2 =l->mask->image_data->get_layer(shrink)->image();    int x = lay->image()->xsize( );    int y = lay->image()->ysize( );    if( a2->xsize() != x || a2->ysize() != y )    a2 = a2->copy( 0,0, x, y, 255,255,255 );