Click or drag to resize

RenderAsByteArrayEvent Class

The event commands RAYGUIDE to save the current job in its workspace as a raster graphic in a data format defined by the file extension. The allowed extensions are ".bmp", ".gif", ".jpeg", ".jpg", ".png", ".tiff" and ".wmp".

Parameter: A tuple containing:

Guid imageId: An ID for the image.

string imageType: The file extension, e. g. ".png".

Size imageSize: The number of pixels the larger side (width or height) of the workspace will have in the saved image; in case of 0 not the complete workspace will be rendered but only the region of size sizeWorld around centerWorld and with the pixel size sizePixel.

double strokeThickness: The thickness of the drawn lines.

Color backgroundColor: The background color of the image.

Color foregroundColor: The color of the drawn lines.

dvec3 centerWorld: In case imageSize equals 0 the center of the region to be drawn in workspace world coordinates; otherwise ignored because the complete workspace will be drawn.

dvec3 sizeWorld: In case imageSize equals 0 the size of the region to be drawn in workspace world coordinates; otherwise ignored because the complete workspace will be drawn.

dvec2 sizePixel: In case imageSize equals 0 the size of the created image in pixel; otherwise ignored because the complete workspace will be drawn with a pixel width or height given in imageSize.

Inheritance Hierarchy
SystemObject
  EventBase
    PubSubEventValueTupleGuid, String, Size, Double, Color, NullableColor
      RAYLASE.Marker.GUI.EventsRenderAsByteArrayEvent

Namespace: RAYLASE.Marker.GUI.Events
Assembly: RAYLASE.Marker.GUI.Events (in RAYLASE.Marker.GUI.Events.dll) Version: 2.50.0
Syntax
C#
public class RenderAsByteArrayEvent : PubSubEvent<(Guid , string , Size , double , Color , Color? )>

The RenderAsByteArrayEvent type exposes the following members.

Constructors
 NameDescription
Public methodRenderAsByteArrayEventInitializes a new instance of the RenderAsByteArrayEvent class
Top
Properties
 NameDescription
Protected propertySubscriptions Gets the list of current subscriptions.
(Inherited from EventBase)
Public propertySynchronizationContext Allows the SynchronizationContext to be set by the EventAggregator for UI Thread Dispatching
(Inherited from EventBase)
Top
Methods
 NameDescription
Public methodContains(ActionUTP) Returns if there is a subscriber matching ActionT.
(Inherited from PubSubEventValueTupleGuid, String, Size, Double, Color, NullableColor)
Public methodContains(SubscriptionToken) Returns if there is a subscriber matching SubscriptionToken.
(Inherited from EventBase)
Protected methodInternalPublish Calls all the execution strategies exposed by the list of IEventSubscription.
(Inherited from EventBase)
Protected methodInternalSubscribe Adds the specified IEventSubscription to the subscribers' collection.
(Inherited from EventBase)
Public methodPrune Forces the PubSubEvent to remove any subscriptions that no longer have an execution strategy.
(Inherited from EventBase)
Public methodPublish Publishes the PubSubEvent.
(Inherited from PubSubEventValueTupleGuid, String, Size, Double, Color, NullableColor)
Public methodSubscribe(ActionUTP) Subscribes a delegate to an event that will be published on the PublisherThread. PubSubEvent will maintain a WeakReference to the target of the supplied action delegate.
(Inherited from PubSubEventValueTupleGuid, String, Size, Double, Color, NullableColor)
Public methodSubscribe(ActionUTP, ThreadOption) Subscribes a delegate to an event. PubSubEvent will maintain a WeakReference to the Target of the supplied action delegate.
(Inherited from PubSubEventValueTupleGuid, String, Size, Double, Color, NullableColor)
Public methodSubscribe(ActionUTP, Boolean) Subscribes a delegate to an event that will be published on the PublisherThread.
(Inherited from PubSubEventValueTupleGuid, String, Size, Double, Color, NullableColor)
Public methodSubscribe(ActionUTP, PredicateUTP) Subscribes a delegate to an event that will be published on the PublisherThread
(Inherited from PubSubEventValueTupleGuid, String, Size, Double, Color, NullableColor)
Public methodSubscribe(ActionUTP, ThreadOption, Boolean) Subscribes a delegate to an event.
(Inherited from PubSubEventValueTupleGuid, String, Size, Double, Color, NullableColor)
Public methodSubscribe(ActionUTP, ThreadOption, Boolean, PredicateUTP) Subscribes a delegate to an event.
(Inherited from PubSubEventValueTupleGuid, String, Size, Double, Color, NullableColor)
Public methodUnsubscribe(ActionUTP) Removes the first subscriber matching ActionT from the subscribers' list.
(Inherited from PubSubEventValueTupleGuid, String, Size, Double, Color, NullableColor)
Public methodUnsubscribe(SubscriptionToken) Removes the subscriber matching the SubscriptionToken.
(Inherited from EventBase)
Top
Remarks
RAYGUIDE responds with the event AsBitmapRenderedEvent.
See Also