Skip to content

SpectrogramGenerator private members to protected #57

Closed
@jmcmeen

Description

@jmcmeen

I am extending/inheriting SpectrogramGenerator to implement a method called GetBytes that returns the spectrogram image data as an array of bytes. The method is modelled after SaveImage, where I am instead of saving the Bitmap to file, I am saving to a MemoryStream and returning the stream as a byte array. I am trying to minimize writing to disk in operations where I am calling SaveImage millions of times and I don't need the .png (or other formats), just it's bytes.

SaveImage requires the private FFTs property. So in my new GetBytes method, I can't access that property. If it were protected, along with some other methods and fields, I believe this would make the class more extensible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions