Search found 92 matches

  • 1
  • 3
  • 4
  • 5
  • 6
  • 7
  • 10
by darthmaule2
23 Feb 2019, 11:39
Forum: General Discussion
Replies: 5
Views: 436

Re: How do I save/render an <Image> element as a file using the managed SDK?

RenderTargetBitmp feature request:
https://www.noesisengine.com/bugs/view.php?id=1410

CroppedBitmap and TransformedBitmap feature request:
https://www.noesisengine.com/bugs/view.php?id=1411
by darthmaule2
19 Feb 2019, 20:34
Forum: General Discussion
Replies: 5
Views: 436

Re: How do I save/render an <Image> element as a file using the managed SDK?

I guess the answer to your second option would get me pretty far. Using WPF, I have a function where I combine multiple BitmapSource images by rendering one on top of the other "BlendBitmapSources" and another one "CreateZoomedImage" where I transform a BitmapSource and then render that. The RendeTa...
by darthmaule2
13 Feb 2019, 20:40
Forum: General Discussion
Replies: 5
Views: 436

How do I save/render an <Image> element as a file using the managed SDK?

I have this BitmapSource property: public BitmapSource RecalledImage { get; set; } The above property is populated by reading an image from disk into a buffer "bytes" and then by calling Create: RecalledImage = Noesis.BitmapSource.Create(file.Width, file.Height, 96, 96, bytes, file.Width * 3, Bitmap...
by darthmaule2
08 Jan 2019, 20:27
Forum: General Discussion
Replies: 3
Views: 1079

Missing functions in needed for creating a custom panel in managed C# SDK

I see that MeasureOverride and ArrangeOverride were added in the latest BETA... Great! But it appears I'm still missing a few functions. My class looks like this: class VirtualizingTilePanel : Noesis.VirtualizingPanel, Noesis.IScrollInfo I'm currently using these functions from WPF's VirtualizingPan...
by darthmaule2
08 Jan 2019, 16:35
Forum: General Discussion
Replies: 5
Views: 1168

Re: How to load and display a local image with managed SDK?

So I have a very simple FileTextureProvider based class working: public class FileSystemTextureProvider : FileTextureProvider { public FileSystemTextureProvider() { } public override Stream OpenStream(string path) { return new FileStream(path, FileMode.Open, FileAccess.Read); } } Questions: 1.) If I...
by darthmaule2
08 Jan 2019, 14:40
Forum: General Discussion
Replies: 5
Views: 1168

Re: How to load and display a local image with managed SDK?

I tried this (and many variations of it) first but it crashes, claiming it can't find the image. I also tried using the BitmapImage provide by System.Windows.Media.Imaging with no luck. Noesis.BitmapImage source = new Noesis.BitmapImage(new Uri("C:\test\image.bmp").AbsolutePath); Perhaps this is the...
by darthmaule2
07 Jan 2019, 21:00
Forum: General Discussion
Replies: 3
Views: 737

Re: Is there a way to load xaml resources from a separate project?

OK thanks. I have this working now. My custom xaml resource loader: public class MultiProjectEmbeddedXamlProvider : XamlProvider { private Dictionary<string, ResourceManager> _xamlToResourceManager; public MultiProjectEmbeddedXamlProvider(Dictionary<string, ResourceManager> xamlToResourceManager) { ...
by darthmaule2
07 Jan 2019, 19:08
Forum: General Discussion
Replies: 5
Views: 1168

How to load and display a local image with managed SDK?

I'm trying to load a local bmp file as a texture so I can display it in an <Image> element in a view. string basePath = @"C:\samples"; NoesisApp.LocalTextureProvider localTextureProvider = new NoesisApp.LocalTextureProvider(basePath); Texture texture = localTextureProvider.LoadTexture("test.bmp"); T...
by darthmaule2
04 Jan 2019, 21:28
Forum: General Discussion
Replies: 3
Views: 737

Is there a way to load xaml resources from a separate project?

Starting with the HelloWorld C# example, I see that XAML resources are stored in the .resx file and loaded like this: public partial class App : Application { #if NOESIS protected override XamlProvider GetXamlProvider() { EmbeddedXaml[] xamls = { new EmbeddedXaml { filename = "App.xaml", resource = ...
  • 1
  • 3
  • 4
  • 5
  • 6
  • 7
  • 10